Advanced / Store Advanced

isWrappable

Returns whether a value would be wrapped in a store proxy. Plain objects, arrays, and class instances are wrappable; built-in objects such as Map and Date, frozen objects, 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


NotWrappable

type NotWrappable =
| string
| number
| bigint
| symbol
| boolean
| Function
| null
| undefined
| SolidStore.Unwrappable[keyof SolidStore.Unwrappable];
Last updated: 10/15/26, 9:29 AMEdit this pageReport an issue with this page