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) 276 B
// @flow export default function allPass<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 false } } return true } }