12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
-
-
- 'use strict';
-
-
-
- module.exports = function each(arr, cb, thisArg) {
- if (arr == null) return;
-
- var len = arr.length;
- var idx = -1;
-
- while (++idx < len) {
- var ele = arr[idx];
- if (cb.call(thisArg, ele, idx, arr) === false) {
- break;
- }
- }
- };
|