* Creates a slice of `array` with elements taken from the beginning. Elements * are taken until `predicate` returns falsey. The predicate is invoked with * three arguments: (value, index, array). * * @static * @memberOf _ * @since 3.0.0
(array, predicate)
| 18913 | * // => [] |
| 18914 | */ |
| 18915 | function takeWhile(array, predicate) { |
| 18916 | return (array && array.length) |
| 18917 | ? baseWhile(array, getIteratee(predicate, 3)) |
| 18918 | : []; |
| 18919 | } |
| 18920 | |
| 18921 | /** |
| 18922 | * Creates an array of unique values, in order, from all given arrays using |
nothing calls this directly
no test coverage detected