結果 : get a portion of an array javascript