Returns a new view over a portion of the buffer.
- Category: JS TypedArray Reference — part of the JavaScript Tutorial on GoCareerGo
- Read the short summary above, then check the linked docs for full syntax/behaviour
- Interview tip: be ready to explain "TypedArray.prototype.subarray()" in one sentence, then back it up with a tiny example
// TypedArray.prototype.subarray() — minimal example
console.log("TypedArray.prototype.subarray()");Tip
Quick recall: "TypedArray.prototype.subarray()" — returns a new view over a portion of the buffer.