結果 : get n number of elements from array javascript