MCPcopy
hub / github.com/lodash/lodash / dropRightWhile

Function dropRightWhile

lodash.js:7221–7225  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 2

baseWhileFunction · 0.85
getIterateeFunction · 0.85

Tested by

no test coverage detected