MCPcopy Create free account
hub / github.com/deployd/deployd / takeWhile

Function takeWhile

test-app/public/sinon.js:18915–18919  ·  view source on GitHub ↗

* Creates a slice of `array` with elements taken from the beginning. Elements * are taken until `predicate` returns falsey. The predicate is invoked with * three arguments: (value, index, array). * * @static * @memberOf _ * @since 3.0.0

(array, predicate)

Source from the content-addressed store, hash-verified

18913 * // => []
18914 */
18915 function takeWhile(array, predicate) {
18916 return (array && array.length)
18917 ? baseWhile(array, getIteratee(predicate, 3))
18918 : [];
18919 }
18920
18921 /**
18922 * Creates an array of unique values, in order, from all given arrays using

Callers

nothing calls this directly

Calls 2

baseWhileFunction · 0.85
getIterateeFunction · 0.85

Tested by

no test coverage detected