Home / Javascript Tips Generated By ChatGPT / Checking if a Value is an Array in Javascript Use Array.isArray to determine if a value is an array. Source Code console.log(Array.isArray(fruits));