MCPcopy
hub / github.com/Kong/insomnia / dropWhile

Function dropWhile

packages/insomnia/bin/yarn-standalone.js:14800–14804  ·  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

14798 * // => objects for ['barney', 'fred', 'pebbles']
14799 */
14800 function dropWhile(array, predicate) {
14801 return (array && array.length)
14802 ? baseWhile(array, getIteratee(predicate, 3), true)
14803 : [];
14804 }
14805
14806 /**
14807 * 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