COLLECTED BY
Organization:
Internet Archive
Focused crawls are collections of frequently-updated webcrawl data from narrow (as opposed to broad or wide) web crawls, often focused on a single domain or subdomain.
The Wayback Machine - https://web.archive.org/web/20201220221559/https://github.com/lodash/lodash/blob/master/keysIn.js
Permalink
Cannot retrieve contributors at this time
32 lines (30 sloc)
594 Bytes
/**
* Creates an array of the own and inherited enumerable property names of `object`.
*
*
* @static
* @memberOf _
* @since 3.0.0
* @category Object
* @param {Object } object The object to query.
* @returns {Array } Returns the array of property names.
* @example
*
* function Foo() {
* this.a = 1;
* this.b = 2;
* }
*
* Foo.prototype.c = 3;
*
* _.keysIn(new Foo);
* // => ['a', 'b', 'c'] (iteration order is not guaranteed)
*/
function keysIn ( object ) {
const result = [ ]
for ( const key in object ) {
result . push ( key )
}
return result
}
export default keysIn
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.