結果 : first n elements array javascript