Updated all, any, none

Merged them with their by counterparts.
This commit is contained in:
Angelos Chalaris
2018-02-16 13:43:43 +02:00
parent ce77e2b8b7
commit 9a3bd8ffae
22 changed files with 58 additions and 135 deletions

View File

@ -11,6 +11,8 @@ test('Testing all', (t) => {
t.false(all([undefined,1]), 'Returns false for arrays with undefined');
t.false(all([null,1]), 'Returns false for arrays with null');
t.false(all(['',1]), 'Returns false for arrays with empty strings');
t.true(all([4,1,2,3], x => x >= 1), 'Returns true with predicate function');
t.false(all([0,1], x => x >= 1), 'Returns false with a predicate function');
//t.deepEqual(all(args..), 'Expected');
//t.equal(all(args..), 'Expected');
//t.false(all(args..), 'Expected');