Optional
args: any[]Converts the SerializableCallback to a JSON object.
the SerializableCallback as a JSON object if serializable
Converts the SerializableCallback to a string representing its source code.
the source code of the function as a string if serializable, otherwise 'function [not serializable]'
Static
fromthe source function to create a SerializableCallback from
Optional
shouldSerialize: booleanwhether the function should be serialized or not
a new SerializableCallback instance
Static
fromCreates a new SerializableCallback instance from a function source code.
the source code of the function
Optional
shouldSerialize: booleanwhether the function should be serialized or not
a new SerializableCallback instance
Represents a serializable function, which can be serialized to a string and later deserialized back to a function.