|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
534 bytes
|
| Line | |
|---|
| 1 | var arrayMap = require('./_arrayMap');
|
|---|
| 2 |
|
|---|
| 3 | /**
|
|---|
| 4 | * The base implementation of `_.values` and `_.valuesIn` which creates an
|
|---|
| 5 | * array of `object` property values corresponding to the property names
|
|---|
| 6 | * of `props`.
|
|---|
| 7 | *
|
|---|
| 8 | * @private
|
|---|
| 9 | * @param {Object} object The object to query.
|
|---|
| 10 | * @param {Array} props The property names to get values for.
|
|---|
| 11 | * @returns {Object} Returns the array of property values.
|
|---|
| 12 | */
|
|---|
| 13 | function baseValues(object, props) {
|
|---|
| 14 | return arrayMap(props, function(key) {
|
|---|
| 15 | return object[key];
|
|---|
| 16 | });
|
|---|
| 17 | }
|
|---|
| 18 |
|
|---|
| 19 | module.exports = baseValues;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.