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/20201220220116/https://github.com/lodash/lodash/blob/master/at.js
Permalink
Cannot retrieve contributors at this time
21 lines (19 sloc)
594 Bytes
import baseAt from './.internal/baseAt.js'
import baseFlatten from './.internal/baseFlatten.js'
/**
* Creates an array of values corresponding to `paths` of `object`.
*
* @since 1.0.0
* @category Object
* @param {Object } object The object to iterate over.
* @param {...(string|string[]) } [paths] The property paths to pick.
* @returns {Array } Returns the picked values.
* @example
*
* const object = { 'a': [{ 'b': { 'c': 3 } }, 4] }
*
* at(object, ['a[0].b.c', 'a[1]'])
* // => [3, 4]
*/
const at = ( object , ...paths ) => baseAt ( object , baseFlatten ( paths , 1 ) )
export default at
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.