Skip to content

plainData beta ​

Function of @v12-engine/engine

ts
export declare function plain(value: unknown, where: string, what: string, advice?: string): unknown;

A copy of a value that is plain data all the way down: numbers, text, lists and plain objects, which is what a file and a wire can carry. Throws when something in it is not (a Map, a class, a function), saying where: what is whose data it is ("Save", "Map"), where the path so far, advice what to do about it