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...
Markdown supported · ⌘↵ to post
No responses yet.