1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const __1 = require("..");
|
4 | /**
|
5 | Test all the values in the collection against a provided predicate.
|
6 |
|
7 | @hidden
|
8 | @param source Source collection to test.
|
9 | @param predicate Predicate to test every item in the source collection against.
|
10 | */
|
11 | exports.default = (source, predicate) => {
|
12 | try {
|
13 | for (const item of source) {
|
14 | __1.default(item, predicate);
|
15 | }
|
16 | return true;
|
17 | }
|
18 | catch (error) {
|
19 | return error.message;
|
20 | }
|
21 | };
|