JSでArray.forEach() をbreakしたくなったら代わりにArray.some()を使おう - Qiita掲題通り。 arr.some(callback[, thisArg]) callbackの受け取る引数は、 element, index[optional], array[optional] の3つです。 someそのものの第二引数thisArgについては基本わすれてもいいかと。 Why not register and get more from Qiita?
掲題通り。 arr.some(callback[, thisArg]) callbackの受け取る引数は、 element, index[optional], array[optional] の3つです。 someそのものの第二引数thisArgについては基本わすれてもいいかと。 Why not register and get more from Qiita?
0 件のコメント:
コメントを投稿