MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / dropRightWhile

Function dropRightWhile

lib/web/jshint.js:6212–6216  ·  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 * bound to `thisArg` and invoked with three arguments: (value, index, array). * * If a property name is provided for `predicate` the cre

(array, predicate, thisArg)

Source from the content-addressed store, hash-verified

6210 * // => ['barney', 'fred', 'pebbles']
6211 */
6212 function dropRightWhile(array, predicate, thisArg) {
6213 return (array && array.length)
6214 ? baseWhile(array, getCallback(predicate, thisArg, 3), true, true)
6215 : [];
6216 }
6217
6218 /**
6219 * Creates a slice of `array` excluding elements dropped from the beginning.

Callers

nothing calls this directly

Calls 2

baseWhileFunction · 0.85
getCallbackFunction · 0.85

Tested by

no test coverage detected