isSerializableRef
Asserts whether a value is a Serializable reference.
Reference
The reference returns true; the original JavaScript object returns false.
Code
Code
Colours connect each executing thread to its current code line. Recently executed lines fade over the next three ticks.
const value = { count: 0 };
const reference = createSerializable(value);
console.log(isSerializableRef(reference)); // true
console.log(isSerializableRef(value)); // false
Console 0
No output yet
Output appears here as the code runs.


Type definitions
function isSerializableRef(value: unknown): value is SerializableRef;
Arguments
value
The value to be checked.
Remarks
isSerializableRefcan be called from any JavaScript Runtime.- On Web,
isSerializableRefalways returnstrue.