• I think x instanceof Pin will work?

    Although perhaps checking "object"==typeof x is better?

About

Avatar for Gordon @Gordon started