MCPcopy
hub / github.com/vercel/hyper / dropWhile

Function dropWhile

bin/yarn-standalone.js:14889–14893  ·  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 * 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

14887 * // => objects for ['barney', 'fred', 'pebbles']
14888 */
14889 function dropWhile(array, predicate) {
14890 return (array && array.length)
14891 ? baseWhile(array, getIteratee(predicate, 3), true)
14892 : [];
14893 }
14894
14895 /**
14896 * Fills elements of `array` with `value` from `start` up to, but not

Callers

nothing calls this directly

Calls 2

baseWhileFunction · 0.85
getIterateeFunction · 0.85

Tested by

no test coverage detected