UNPKG

@grindife/supamelon

Version:

Combination of supabase and watermelondb

14 lines (12 loc) 288 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 } }