UNPKG

@signaldb/core

Version:

SignalDB is a client-side database that provides a simple MongoDB-like interface to the data with first-class typescript support to achieve an optimistic UI. Data persistence can be achieved by using storage providers that store the data through a JSON in

8 lines (7 loc) 175 B
"use strict"; const mingo = require("mingo"); function match(item, selector) { const query = new mingo.Query(selector); return query.test(item); } module.exports = match;