結果 : javascript list take first n elements of array