Skip to content

ResourceLockedError.[Symbol.hasInstance] method

ResourceLockedError › [Symbol.hasInstance]

Matches a ResourceLockedError thrown by any copy of this library, by its name and path. A subclass keeps the ordinary prototype check.

Signature:

[Symbol.hasInstance](instance: unknown): boolean

Parameters:

ParameterTypeDescription
instanceunknownThe value on the left of instanceof.

Returns: boolean — true if the value is a resource-locked error.