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) 204 B
"use strict"; function intersection(...arrays) { if (arrays.length === 0) return []; return [...new Set(arrays.reduce((a, b) => a.filter((c) => b.includes(c))))]; } module.exports = intersection;