Get Subarray From Array Javascript Mdn