Problem 2618 · Easy

Check if Object Instance of Class

Walk an object’s prototype chain and report whether a class appears in it; primitives never count.

Open the interactive visualisation