UNPKG

rc-js-util

Version:

A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.

14 lines 376 B
/** * @public * Like `Array.forEach`. * @remarks * Has more consistent performance characteristics cross-platform than the built-in `Array.forEach`. * * See {@link arrayForEach}. */ export function arrayForEach(items, callback) { for (let i = 0, iEnd = items.length; i < iEnd; ++i) { callback(items[i], i); } } //# sourceMappingURL=array-for-each.js.map