UNPKG

utilite

Version:

Powerful utility library for JS

9 lines (8 loc) 439 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const index_1 = require("./utility/ArrayUtils/index"); const consola_1 = require("consola"); const flag = (0, index_1.isAnyMatching)([1, 3, 4, 5, 66], (value) => value % 2 === 0); consola_1.consola.info(flag); const flag2 = (0, index_1.isAnyMatching)(["hell", "hello", "buffalo", "yellow", "zoo"], (value) => value.endsWith("o")); consola_1.consola.info(flag2);