NeetCode #968LC-2618MediumJavaScript
← Back to All Problems#968 · #2618 · Check if Object Instance of Class(检查是否是类的对象实例)
📌 Problem Statement & Constraints
Implement
checkIfInstanceOf(obj, classFunction), which determines whether obj is an instance of classFunction by walking the prototype chain. It must support primitives and Object.create(null), and return false when classFunction is not a function.🔒
Sign In to Unlock Full Solutions for All 973 Problems
Sign in to access step-by-step logic, benchmark Python3 code, complexity breakdown, and offline export!