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

Function dropWhile

lib/web/jshint.js:6267–6271  ·  view source on GitHub ↗

* Creates a slice of `array` excluding elements dropped from the beginning. * 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` t

(array, predicate, thisArg)

Source from the content-addressed store, hash-verified

6265 * // => ['barney', 'fred', 'pebbles']
6266 */
6267 function dropWhile(array, predicate, thisArg) {
6268 return (array && array.length)
6269 ? baseWhile(array, getCallback(predicate, thisArg, 3), true)
6270 : [];
6271 }
6272
6273 /**
6274 * Fills elements of `array` with `value` from `start` up to, but not

Callers

nothing calls this directly

Calls 2

baseWhileFunction · 0.85
getCallbackFunction · 0.85

Tested by

no test coverage detected