mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 16:31:52 +01:00
11 lines
265 B
JavaScript
11 lines
265 B
JavaScript
export default function every(values, test) {
|
|
if (typeof test !== "function") throw new TypeError("test is not a function");
|
|
let index = -1;
|
|
for (const value of values) {
|
|
if (!test(value, ++index, values)) {
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
}
|