結果 : javascript return first n elements of array