結果 : javascript array take n elements