@stdlib/esm
Version:
ES module distribution for Stdlib, a standard library for JavaScript and Node.js.
3 lines • 571 B
JavaScript
// This file is a part of stdlib. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0
import r from"./../assert/is-collection.js";import t from"./../assert/is-function.js";var e=r,n=t;function o(r,t,o){var a,i;if(!e(r))throw new TypeError("invalid argument. First argument must be a collection. Value: `"+r+"`.");if(!n(t))throw new TypeError("invalid argument. Second argument must be a function. Value: `"+t+"`.");for(a=r.length,i=0;i<a;i++){if(!t.call(o,r[i],i,r))return!1;a=r.length}return!0}var a=o;export default a;
//# sourceMappingURL=every-by.js.map