@revideo/2d / utils / is
Function: is()
is<
T>(klass): (object) =>object is T
Defined in: 2d/src/lib/utils/is.ts:7
Create a predicate that checks if the given object is an instance of the given class.
Type Parameters
T
T
Parameters
klass
(…args) => T
The class to check against.
Returns
(object) => object is T