You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Depends what you're doing, but you could just convert both objects to a String with JSON.stringify and compare the strings?

    Can you file a bug for instanceof? I'm kind of surprised about that - I thought those kind of issues had been ironed out a while back.

    I think in JS, an array is Array, which is also an instance of Object. Espruino currently has a bit of a shonky prototype chain implementation, and it's possible instanceof has fallen foul of that.

About

Avatar for Gordon @Gordon started