* Creates a slice of `array` excluding elements dropped from the end. * Elements are dropped until `predicate` returns falsey. The predicate is * invoked with three arguments: (value, index, array). * * @static * @memberOf _ * @since 3.0.0 * @category Array *
(array, predicate)
| 7219 | * // => objects for ['barney', 'fred', 'pebbles'] |
| 7220 | */ |
| 7221 | function dropRightWhile(array, predicate) { |
| 7222 | return (array && array.length) |
| 7223 | ? baseWhile(array, getIteratee(predicate, 3), true, true) |
| 7224 | : []; |
| 7225 | } |
| 7226 | |
| 7227 | /** |
| 7228 | * Creates a slice of `array` excluding elements dropped from the beginning. |
nothing calls this directly
no test coverage detected