Javascript isArray() function

posted in: Javascript, Programming | 0

Javascript does not provide a function to recognize if a variable is an array or not; you can make a “typeof” of the variable however u’ll get an ‘object’ datatype, as in the following code to recognize a data type … Read More

How to stringify an object in Javascript: converting an object to a padded & well-formatted string or simply inline

I wrote a function to convert an object in a string (stringification) without using a JSON library; you can convert an object to a well formatted string with padding or simply to an unique line: a little example, you declare … Read More