UNPKG

es-toolkit

Version:

A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.

11 lines (9 loc) 186 B
function some(set, doesMatch) { for (const value of set) { if (doesMatch(value, value, set)) { return true; } } return false; } export { some };