The slice()
method returns a new typed array (with a new underlying buffer), that contains a copy of a portion of the original typed array. This method has the same algorithm as Array.prototype.slice()
. TypedArray is one of the typed array types here.