From a73b1b41d5d6052e6784674ea7373c7c99065449 Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Thu, 10 Aug 2023 13:04:28 +0300 Subject: [PATCH] forEach | JS --- snipplets/code/JavaScript/forEach.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 snipplets/code/JavaScript/forEach.js 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]);