@antv/layout
Version:
graph layout algorithm
35 lines (29 loc) • 801 B
JavaScript
/**
* A specialized version of `_.forEach` for arrays without support for
* iteratee shorthands.
*
* @private
* @param {Array} [array] The array to iterate over.
* @param {Function} iteratee The function invoked per iteration.
* @returns {Array} Returns `array`.
*/
var _arrayEach;
var hasRequired_arrayEach;
function require_arrayEach () {
if (hasRequired_arrayEach) return _arrayEach;
hasRequired_arrayEach = 1;
function arrayEach(array, iteratee) {
var index = -1,
length = array == null ? 0 : array.length;
while (++index < length) {
if (iteratee(array[index], index, array) === false) {
break;
}
}
return array;
}
_arrayEach = arrayEach;
return _arrayEach;
}
export { require_arrayEach as __require };
//# sourceMappingURL=_arrayEach.js.map