123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- var baseIteratee = require('./_baseIteratee'),
- baseWhile = require('./_baseWhile');
- function takeRightWhile(array, predicate) {
- return (array && array.length)
- ? baseWhile(array, baseIteratee(predicate, 3), false, true)
- : [];
- }
- module.exports = takeRightWhile;
|