check if js array isEmpty code example Example 1: check if array is empty javascript array.length = [] Example 2: empty array length javascript empty array check javascript