- begin: The slicing begins from the Zero-based byte index.
- end: The slicing ends at this index byte. The new ArrayBuffer will contain all the contents if the end is found unspecified. It must be a valid index range specified for the current array. If the new ArrayBuffer length is found negative then it is fixed with zero.
Return Value: The property returns a new ArrayBuffer object.
Input : uint32View = 31 myBuffer.slice(4, 12) sliced_bu Output : 31 Input : uint32View = 32 myBuffer.slice(4, 12) sliced_bu Output : 32
- Google Chrome
- Internet Explorer