How to Check if a Variable Is an Array in JavaScript | CodeTrail