MCPcopy
hub / github.com/deployd/deployd / dropRightWhile

Function dropRightWhile

test-app/public/sinon.js:17753–17757  ·  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

(array, predicate)

Source from the content-addressed store, hash-verified

17751 * // => objects for ['barney', 'fred', 'pebbles']
17752 */
17753 function dropRightWhile(array, predicate) {
17754 return (array && array.length)
17755 ? baseWhile(array, getIteratee(predicate, 3), true, true)
17756 : [];
17757 }
17758
17759 /**
17760 * 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