Files
30-seconds-of-code/test/any/any.js
Angelos Chalaris 9cbdbe5656 Updated all, any, none
Merged them with their by counterparts.
2018-02-16 13:43:43 +02:00

2 lines
70 B
JavaScript

const any = (arr, fn = Boolean) => arr.some(fn);
module.exports = any;