use "forEach" instead of "each" (#216)

"forEach" is standard API, but "each" is non-standard.

See below:

- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach
- https://developer.mozilla.org/en-US/docs/Web/API/NodeList/forEach
This commit is contained in:
ybiquitous 2017-09-14 17:24:11 +09:00 committed by Andrea Crotti
parent 5c3bb7ad8f
commit 886befad0e
1 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
# -*- mode: snippet -*-
#name : each
# -*- mode: snippet; require-final-newline: nil -*-
# name: each
# --
${1:collection}.each(function($2) {
${1:collection}.forEach(function (${2:elem}) {
$0
});