UNPKG

json-function

Version:

It allows you to use methods such as where, limit, select, orderBy on JSON data.

9 lines (8 loc) 248 B
declare type WhereItem = { [key: string]: any; }; declare type WhereFunction = (data: WhereItem[], queries: Object | Object[] | Function, options?: { deep?: boolean; }) => Object[]; declare const where: WhereFunction; export default where;