@stdlib/esm
Version:
ES module distribution for Stdlib, a standard library for JavaScript and Node.js.
3 lines • 399 B
JavaScript
// This file is a part of stdlib. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0
import e from"./../assert/is-nonnegative-integer.js";var r=e.isPrimitive;function n(e){if(!r(e))throw new TypeError("invalid argument. Must provide a nonnegative integer. Value: `"+e+"`.");return function(){return arguments[e]}}var i=n;export default i;
//# sourceMappingURL=argument-function.js.map