結果 : javascript check if undefined or empty array