"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
6 lines
125 B
Plaintext
6 lines
125 B
Plaintext
# -*- mode: snippet; require-final-newline: nil -*-
|
|
# name: each
|
|
# --
|
|
${1:collection}.forEach(function (${2:elem}) {
|
|
$0
|
|
}); |