UNPKG

@stdlib/esm

Version:

ES module distribution for Stdlib, a standard library for JavaScript and Node.js.

3 lines 844 B
// This file is a part of stdlib. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 import r from"./../constants/math/float64-max-safe-integer.js";import t from"./../assert/is-positive-integer.js";import e from"./../assert/is-writable-property.js";import o from"./property-names.js";import i from"./get-prototype-of.js";import s from"./../assert/has-own-property.js";var a=r,m=t.isPrimitive,n=e,p=o,f=i,l=s;function u(r,t){var e,o,i,s,u,g,v,h;if(arguments.length>1){if(!m(t))throw new TypeError("invalid argument. Second argument must be a positive integer. Value: `"+t+"`.");u=t}else u=a;if(null==r)return[];for(i=f(r),e=[],o={},g=1;i&&g<=u;){for(s=p(i),h=0;h<s.length;h++)v=s[h],!1===l(o,v)&&n(i,v)&&e.push(v),o[v]=!0;i=f(i),g+=1}return e}var g=u;export default g; //# sourceMappingURL=inherited-writable-property-names.js.map