isWrappable
Returns whether a value would be wrapped in a store proxy. Plain objects, arrays, and class instances are wrappable, frozen or not; built-in objects such as Map and Date, DOM nodes, and primitives are not.
Import
import { isWrappable } from "solid-js";Type signature
function isWrappable<T>(obj: T | NotWrappable): obj is T;Parameters
obj
- Type:
T | NotWrappable
Learn more
Related types
NotWrappable
type NotWrappable = | string | number | bigint | symbol | boolean | Function | null | undefined | SolidStore.Unwrappable[keyof SolidStore.Unwrappable];