UNPKG

doff

Version:

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

13 lines (10 loc) 217 B
'use strict'; // Define exports module.exports = function arrayEach(target, iteratee) { let idx = target.length; while (idx--) { if (iteratee(target[idx], idx, target) === false) { break; } } };