UNPKG

@stdlib/esm

Version:

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

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