UNPKG

@stdlib/esm

Version:

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

3 lines 1.04 kB
// 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 e from"./../assert/is-positive-integer.js";import t from"./property-descriptors.js";import o from"./property-symbols.js";import i from"./get-prototype-of.js";import s from"./keys.js";import a from"./define-property.js";import m from"./../assert/has-own-property.js";var n=r,p=e.isPrimitive,f=t,l=o,u=i,g=s,v=a,b=m;function j(r,e){var t,o,i,s,a,m,j;if(arguments.length>1){if(!p(e))throw new TypeError("invalid argument. Second argument must be a positive integer. Value: `"+e+"`.");a=e}else a=n;if(null==r)return{};for(i=u(r),t={},m=1;i&&m<=a;){for(s=f(i),o=g(s),j=0;j<o.length;j++)b(t,o[j])||v(t,o[j],{configurable:!0,enumerable:!0,writable:!0,value:s[o[j]]});for(o=l(s),j=0;j<o.length;j++)b(t,o[j])||v(t,o[j],{configurable:!0,enumerable:!0,writable:!0,value:s[o[j]]});i=u(i),m+=1}return t}var y=j;export default y; //# sourceMappingURL=inherited-property-descriptors.js.map