TypedArray subclass pages say contents are initialized to 0 #33743
Labels
Content:JS
JavaScript docs
goal: accuracy
(Experimental label) Issues about inaccurate/incorrect content.
MDN URL
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array
What specific section or headline is this issue about?
main heading
What information was incorrect, unhelpful, or incomplete?
For each of BigInt64Array, BigUint64Array, Float32Array, etc. (all the TypedArray subclasses), the initial description contains:
This initialization is only done if the TypedArray subclass is created by passing a length to the constructor. It is not done if the instance is created from an existing array or a buffer.
Try this in a console:
What did you expect to see?
It should say something like:
Do you have any supporting links, references, or citations?
No response
Do you have anything more you want to share?
No response
MDN metadata
Page report details
en-us/web/javascript/reference/global_objects/float32array
The text was updated successfully, but these errors were encountered: