zxcvbn.js bundled and minified is about 400kB gzipped or 820kB uncompressed, most of which is dictionaries. Its starting value is null, but once a number is entered and cleared, its an empty string. What is the most efficient way to deep clone an object in JavaScript? One called object literal and the other one is a function constructor! MySQL query to check if database is empty or not? Note that this happens only when the string, My environment only supports ECMAScript XP Home Edition :(, @PaulD.Waite (I hope you meant IE 6 :D) No problem :-) Just remember that, @PaulD.Waite maybe its this app, but I dont see an accepted answer. Objects. The problem of isNaN() function is that it may return unexpected result in some cases: A better way to check if the value is really NaN is: If your environment supports ECMAScript 2015, then you might want to use Number.isNaN to make sure that the value is really NaN. We do not currently allow content pasted from ChatGPT on Stack Overflow; read our policy here. Use String.prototype.trim(): You are missing the required