Tuesday, 17 May 2016

javascript - which is the best method used for checking isarray

I want to check a variable is it array?



which is the best method used for this to get better performance.




isArray



or



instanceof

No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...