Travis build: 574 [cron]

This commit is contained in:
30secondsofcode
2018-10-01 20:16:38 +00:00
parent 41d08ed789
commit bf35deabc8
5 changed files with 1613 additions and 1612 deletions

View File

@ -1,2 +1,3 @@
const takeRightWhile = (arr, func) => arr.reduceRight((acc, el) => func(el) ? acc : [el, ...acc], []);
const takeRightWhile = (arr, func) =>
arr.reduceRight((acc, el) => (func(el) ? acc : [el, ...acc]), []);
module.exports = takeRightWhile;