結果 : javascript take first n elements of array