UNPKG

@nozbe/watermelondb

Version:

Build powerful React Native and React web apps that scale from hundreds to tens of thousands of records and remain fast

14 lines (12 loc) 275 B
// @flow export default function anyPass<T>(predicates: Array<(T) => boolean>): (T) => boolean { const len = predicates.length return (obj) => { for (let i = 0; i < len; i++) { if (predicates[i](obj)) { return true } } return false } }