© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Chety
Solving everyday problem by code
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
Full Stack Developer | Freelancer | JavaScript | React | Nodejs. https://yogeshchavan.dev/. Book 1:1 @ hiretheauthor.com/myogeshchavan97
Chety Thanks for pointing out my mistake. I have updated the article.
And thanks for mentioning another way for Array type check.
ashpbt 123
Web developer
Yogesh Chavan Thanks for sharing helpful about js.