Function isMinimalWritableStore
Parameters
- store: any
variable to test that might be a store.
Returns store is MinimalWritable<unknown>
Whether the variable tested has the shape of a MinimalWritable store.
- store: any
variable to test that might be a store.
Whether the variable tested has the shape of a MinimalWritable store.
Provides a basic test for a given variable to test if it has the shape of a minimal writable store by having a
subscribeandsetfunctions.Note: functions are also objects, so test that the variable might be a function w/
subscribe&setfunctions.