@stdlib/esm
Version:
ES module distribution for Stdlib, a standard library for JavaScript and Node.js.
3 lines • 1.07 kB
JavaScript
// This file is a part of stdlib. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0
import r from"./../utils/define-nonenumerable-read-only-property.js";import e from"./../assert/is-number.js";import n from"./../math/base/assert/is-nan.js";import t from"./../symbol/iterator.js";import a from"./../math/base/special/ceil.js";var i=r,o=e.isPrimitive,u=n,m=t,s=a,l=1;function f(r,e,n){var t,a,d,p,b;if(!o(r)||u(r))throw new TypeError("invalid argument. First argument must be a number. Value: `"+r+"`.");if(!o(e)||u(e))throw new TypeError("invalid argument. Second argument must be a number. Value: `"+e+"`.");if(arguments.length>2){if(!o(n)||u(n))throw new TypeError("invalid argument. Third argument must be a number. Value: `"+n+"`.");a=n}else a=l;return p=s((e-r)/a),b=-1,i(t={},"next",v),i(t,"return",g),m&&i(t,m,h),t;function v(){return b+=1,d||b>=p?{done:!0}:{value:r+b*a,done:!1}}function g(r){return d=!0,arguments.length?{value:r,done:!0}:{done:!0}}function h(){return f(r,e,a)}}var d=f;export default d;
//# sourceMappingURL=incrspace.js.map