Become a member
to unlock all features

    Determine an Object's Constructor with JavaScripts instanceof Operator


    The instanceof operator can be used to figure out which function created an object. However it does have its drawbacks, such as returning false results. In this lesson we'll understand how the instanceof method determines which function created an object and manipulate the results.