main
Last change
on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
499 bytes
|
Rev | Line | |
---|
[d565449] | 1 | import basePickBy from './_basePickBy.js';
|
---|
| 2 | import hasIn from './hasIn.js';
|
---|
| 3 |
|
---|
| 4 | /**
|
---|
| 5 | * The base implementation of `_.pick` without support for individual
|
---|
| 6 | * property identifiers.
|
---|
| 7 | *
|
---|
| 8 | * @private
|
---|
| 9 | * @param {Object} object The source object.
|
---|
| 10 | * @param {string[]} paths The property paths to pick.
|
---|
| 11 | * @returns {Object} Returns the new object.
|
---|
| 12 | */
|
---|
| 13 | function basePick(object, paths) {
|
---|
| 14 | return basePickBy(object, paths, function(value, path) {
|
---|
| 15 | return hasIn(object, path);
|
---|
| 16 | });
|
---|
| 17 | }
|
---|
| 18 |
|
---|
| 19 | export default basePick;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.