synced-set
Synchronize a Set collection of objects across a wire.
npm i synced-set
|
pnpm add synced-set
|
yarn add synced-set
|
API
# add
(object, fromRemote)
# emit
(eventName, args)
# thisArg
any
forEach(callback, thisArg) =>
- void
# off
(eventName, callback)
# on
(eventName, callback, options)
# callback
SyncedSetEvents<T> [K]
# options
EventEmitterOptions
on<K>(eventName, callback, options) =>
- Off
send(payload, cb) =>
- void
send(payload, cb) =>
- void
Credits
- event-toolkit by stagas – Toolkit for DOM events.
- everyday-utils by stagas – Everyday utilities
- pick-omit by stagas – The two missing object methods we always need.
Contributing
All contributions are welcome!