Skip to content

Commit a083003

Browse files
Update README.md
1 parent f7e6a09 commit a083003

File tree

1 file changed

+2
-2
lines changed
  • 2618-check-if-object-instance-of-class

1 file changed

+2
-2
lines changed

Diff for: 2618-check-if-object-instance-of-class/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<h2><a href="https://leetcode.com/problems/check-if-object-instance-of-class/">2618. Check if Object Instance of Class</a></h2><h3>Medium</h3><hr><div><p>Write a function that checks if a given value&nbsp;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.</p>
1+
<h2><a href="https://leetcode.com/problems/check-if-object-instance-of-class/">2618. Check if Object Instance of Class</a></h2><img src="https://img.shields.io/badge/Medium-FECC00" alt="Medium" /><hr><div><p>Write a function that checks if a given value&nbsp;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.</p>
22

33
<p>There are&nbsp;no constraints on the data types that can be passed to the function. For example, the value or the class could be&nbsp;<code>undefined</code>.</p>
44

@@ -34,4 +34,4 @@ Dog is a subclass of Animal. Therefore, a Dog object is an instance of both Dog
3434
<strong>Output:</strong> true
3535
<strong>Explanation: </strong>5 is a Number. Note that the "instanceof" keyword would return false. However, it is still considered an instance of Number because it accesses the Number methods. For example "toFixed()".
3636
</pre>
37-
</div>
37+
</div>

0 commit comments

Comments
 (0)