JS Hot Question
Recently while preparing for a javascript interview I revised foundational questions of javascript and shared a few goods with you.
1. Check if an object is an array.
let arr = [1,2,3,4,5]
// METHOD 1
console.log(toString.call(arr) === "[object Arra...
mamtagupta.hashnode.dev10 min read