* The base implementation of `_.at` without support for individual paths. * * @private * @param {Object} object The object to iterate over. * @param {string[]} paths The property paths to pick. * @returns {Array} Returns the picked elements.
(object, paths)
| 2569 | * @returns {Array} Returns the picked elements. |
| 2570 | */ |
| 2571 | function baseAt(object, paths) { |
| 2572 | var index = -1, |
| 2573 | length = paths.length, |
| 2574 | result = Array(length), |
| 2575 | skip = object == null; |
| 2576 | |
| 2577 | while (++index < length) { |
| 2578 | result[index] = skip ? undefined : get(object, paths[index]); |
| 2579 | } |
| 2580 | return result; |
| 2581 | } |
| 2582 | |
| 2583 | /** |
| 2584 | * The base implementation of `_.clamp` which doesn't coerce arguments. |
no test coverage detected