isInstance(of:)
Returns a Boolean value indicating whether the value is an instance of another JavaScript object value.
Declaration
func isInstance(of value: Any!) -> BoolParameters
- value:
The value to be compared against.
Return Value
Discussion
This method is analogous to the instanceof operator in JavaScript: it tests for the presence of the specified value’s constructor prototype in this value’s prototype chain.