@stdlib/esm
Version:
ES module distribution for Stdlib, a standard library for JavaScript and Node.js.
3 lines • 957 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"./../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 s from"./property-symbols.js";import i from"./get-prototype-of.js";import p from"./../assert/has-own-property.js";var m=r,a=t.isPrimitive,n=e,f=o,l=s,u=i,g=p;function h(r,t){var e,o,s,i,p,h,j,v;if(arguments.length>1){if(!a(t))throw new TypeError("invalid argument. Second argument must be a positive integer. Value: `"+t+"`.");p=t}else p=m;if(null==r)return[];for(s=u(r),e=[],o={},h=1;s&&h<=p;){for(i=f(s),v=0;v<i.length;v++)j=i[v],!1===g(o,j)&&n(s,j)&&e.push(j),o[j]=!0;for(i=l(s),v=0;v<i.length;v++)j=i[v],!1===g(o,j)&&n(s,j)&&e.push(j),o[j]=!0;s=u(s),h+=1}return e}var j=h;export default j;
//# sourceMappingURL=inherited-writable-properties.js.map