You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • d[18] === d.charCodeAt(18) ?

    d[18] is like d.substr(18,1) - so it still returns a string. But in JavaScript numeric strings are treated as numbers when involved in maths, so it's just a 1 or a 0.

    Not great, but it's buried deep in a module, and users will be more worried about it being small and fast :)

About

Avatar for Gordon @Gordon started