diff --git a/snipplets/code/JavaScript/forEach.js b/snipplets/code/JavaScript/forEach.js new file mode 100644 index 0000000..218bda3 --- /dev/null +++ b/snipplets/code/JavaScript/forEach.js @@ -0,0 +1,9 @@ +// arr.forEach(function callback(currentValue, index, array) { + // your iterator +// }[, thisArg]); + +Синтаксис + +arr.forEach(function callback(currentValue, index, array) { + //your iterator +}[, thisArg]);