結果 : if array is empty return null javascript