@stdlib/esm
Version:
ES module distribution for Stdlib, a standard library for JavaScript and Node.js.
3 lines • 588 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,l;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,l=0;l<a;l++)i=t.call(o,r[l],l,r),a!==r.length&&(a=r.length),l<a&&(r[l]=i);return r}var a=o;export default a;
//# sourceMappingURL=inmap.js.map