[WIP] Tweak skooma state contract

This commit is contained in:
Talia 2024-01-22 11:22:11 +01:00
parent dda6673f15
commit dc29b10b1a

View file

@ -52,9 +52,9 @@ const getCustom = args => args.reduce(
const isElement = object => HTMLElement.prototype.isPrototypeOf(object) const isElement = object => HTMLElement.prototype.isPrototypeOf(object)
const isReactive = object => object const isReactive = object => !(object instanceof HTMLElement)
&& (object instanceof EventTarget) && (object instanceof EventTarget)
&& ("subscribe" in object) && ("value" in object)
const toChild = arg => { const toChild = arg => {
if (typeof arg == "string" || typeof arg == "number") { if (typeof arg == "string" || typeof arg == "number") {