leetcode 30 days js challenge
Medium
2618. Check if Object Instance of Class
Write a function that checks if a given value is an instance of a given class or superclass. For this problem, an object is considered an instance of a given class if that object has access to that class's methods.
There are no constraints on the data types that can be passed to the function. For example, the value or the class could be undefined
.
Example 1:
Example 2:
Example 3:
Example 4:
SheepMon, May 29, 2023