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:
parent
5c3bb7ad8f
commit
886befad0e
|
@ -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
|
||||
});
|
Loading…
Reference in New Issue