Search posts, tags, users, and pages
Chety
Hey Yogesh Chavan
Good tips thanks. By the way, I can add my two cents to your article.
arr.slice(-1)
[50]
50
const isArray = Object.prototype.toString.call(arr) == "[object Array]"
Yogesh Chavan
Chety Thanks for pointing out my mistake. I have updated the article.
And thanks for mentioning another way for Array type check.
ashpbt 123
Yogesh Chavan Thanks for sharing helpful about js.