How to check if an array is empty nodjs code example Example: check if array is empty javascript array.length = []