UNPKG

@stdlib/esm

Version:

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

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