how to check if empty array javascript _+mocha code example Example: check if array is empty javascript array.length = []