Add get
This commit is contained in:
1
sw.js
1
sw.js
@@ -1,5 +1,6 @@
|
|||||||
const isFunction = (value) => typeof value === 'function';
|
const isFunction = (value) => typeof value === 'function';
|
||||||
const isNode = (value) => value instanceof Node;
|
const isNode = (value) => value instanceof Node;
|
||||||
|
const get = (sig) => (sig?._isSignal ? sig.value : (isFn(sig) ? sig() : sig));
|
||||||
|
|
||||||
// --- Schedule System ---
|
// --- Schedule System ---
|
||||||
let isScheduled = false;
|
let isScheduled = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user