UNPKG

@stdlib/esm

Version:

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

3 lines 848 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-symbols.js";import i from"./get-prototype-of.js";import s from"./../assert/has-own-property.js";var a=r,m=t.isPrimitive,p=e,n=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=n(i),h=0;h<s.length;h++)v=s[h],!1===l(e,v)&&p(i,v)&&o.push(v),e[v]=!0;i=f(i),g+=1}return o}var g=u;export default g; //# sourceMappingURL=inherited-writable-property-symbols.js.map