One lines of useful JavaScript things Array Check if a variable is an Array const isArray = Array.isArray(arr);