UNPKG

doff

Version:

A powerful tool to free your objects and arrays from unwanted content

12 lines (9 loc) 233 B
'use strict'; // Define exports module.exports = function arrayEach(target, iteratee) { for (let idx = 0, len = target.length; idx < len; idx++) { if (iteratee(target[idx], idx, target) === false) { break; } } };