Tuesday 16 July 2019

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

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...