UNPKG

@newdash/newdash

Version:

javascript/typescript utility library

25 lines (24 loc) 500 B
/** * Creates an array of the own and inherited enumerable property names of `object`. * * * @since 5.5.0 * @category Object * @param object The object to query. * @returns Returns the array of property names. * @example * * ```js * function Foo() { * this.a = 1; * this.b = 2; * } * * Foo.prototype.c = 3; * * keysIn(new Foo); * // => ['a', 'b', 'c'] (iteration order is not guaranteed) * ``` */ export declare function keysIn(object: any): string[]; export default keysIn;