News

small experiment with javascript foreach routine in node. Shows what to expect when trying a forEach () on an array vs. an object read from a yaml file.
Hence here we will learn how we can iterate through the elements of an array as per ES6. It avoids the pitfalls that we met in “for-in”. Unlike forEach () , “for-of” will work with break, return and ...
array : forEach () が呼び出されている配列です。 : 配列のそれぞれの要素に対して実行する関数。 返値は破棄されます。 この関数は以下の引数で呼び出されます。 element : 現在処理中の配列の要素です。 index : 現在処理中の配列の要素のインデックスです。