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

Function takeRightWhile

lib/web/jshint.js:7055–7059  ·  view source on GitHub ↗

* Creates a slice of `array` with elements taken from the end. Elements are * taken 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 created `_.p

(array, predicate, thisArg)

Source from the content-addressed store, hash-verified

7053 * // => []
7054 */
7055 function takeRightWhile(array, predicate, thisArg) {
7056 return (array && array.length)
7057 ? baseWhile(array, getCallback(predicate, thisArg, 3), false, true)
7058 : [];
7059 }
7060
7061 /**
7062 * Creates a slice of `array` with elements taken from the beginning. Elements

Callers

nothing calls this directly

Calls 2

baseWhileFunction · 0.85
getCallbackFunction · 0.85

Tested by

no test coverage detected