UNPKG

537 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3const __1 = require("..");
4/**
5Test 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*/
11exports.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};