documents/probe

Queries objects in memory using a mongo-like notation for reaching into objects and filtering for records

Source:
Author:
  • Terry Weiss
License:
  • MIT

(require("documents/probe"))(obj, qu) → {boolean}

Source:

Returns true if all items match the query

Parameters:
Name Type Description
obj array | object

The object to query

qu object

The query to execute. See module:documents/probe.queryOperators for the operators you can use.

Returns:
Type
boolean

Requires

  • module:lodash