結果 : take first two elements of array javascript