Object Data Properties
Data properties contain a single location for a data value. Values are read from and written to this location. Data properties have four attributes describing their behavior:
Property | Description |
---|---|
[[Configurable]] | Indicates if the property may be redefined by removing the property via delete, changing the property's attributes, or changing the property into an accessor property. By default, this is true for all properties defined directly on an object. |
[[Enumerable]] | Indicates if the property will be returned in a for-in loop. By default, this is true for all properties defined directly on an object. |
[[Writable]] | Indicates if the property's value can be changed. By default, this is true for all properties defined directly on an object. |
[[Value]] | Contains the actual data value for the property. This is the location from which the property's value is read and the location to which new values are saved. The default value for this attribute is undefined. |
Property | Description |
---|---|
[[Configurable]] | Indicates if the property may be redefined by removing the property via delete, changing the property's attributes, or changing the property into a data property. By default, this is true for all properties defined directly on an object. |
[[Enumerable]] | Indicates if the property will be returned in a for-in loop. By default, this is true for all properties defined directly on an object. |
[[Get]] | The function to call when the property is read from. The default value is undefined. |
[[Set]] | The function to call when the property is written to. The default value is undefined. |
Method Object.keys() | Meaning returns an array of the names of the enumerable own properties of an object. It does not include non-enumerable properties, inherited properties, or properties whose name is a Symbol. |
---|---|
Object.getOwnPropertyNames() | returns an array of the names of non-enumerable own properties as well, as long as their names are strings. |
Object.getOwnPropertySymbols() | returns own properties whose names are Symbols, whether or not they are enumerable. |
Reflect.ownKeys() | returns all own property names, both enumerable and non-enumerable, and both string and Symbol. |
Elementtype | Bytes | Description | C Equivalent | Range Of Values |
---|---|---|---|---|
Int8 | 1 | 8-bit signed integer | signed char | -128 to 127 |
Uint8 | 1 | 8-bit unsigned integer | unsigned char | 0 to 255 |
Int16 | 2 | 16-bit signed integer | short | -32768 to 32767 |
Uint16 | 2 | 16-bit unsigned integer | unsigned short | 0 to 65535 |
Int32 | 4 | 32-bit signed integer | int | -2,147,483,648 to 2,147,483,647 |
Uint32 | 4 | 32-bit unsigned integer | unsigned int | 0 to 4,294,967,295 |
Float32 | 4 | 32-bit IEEE-754 floating point | float | -3.4E+38 to +3.4E+38 |
Float64 | 8 | 64-bit IEEE-754 floating point | double | -1.7E+308 to +1.7E+308 |
Item | Description |
---|---|
length | When called with a length argument, an internal array buffer is created in memory, of size length multiplied by BYTES_PER_ELEMENT bytes, containing zeros. |
typed_Array | When called with a typed_Array argument, which can be an object of any of the typed array types (such as Float64Array), the typed_Array gets copied into a new typed array. |
object | When called with an object argument, a new typed array is created as if by the Float64Array.from() method. |
buffer, byteOffset, length | When called with a buffer, and optionally a byteOffset and a length argument, a new typed array view is created that views the specified ArrayBuffer. |
Item |
---|
Float64Array.BYTES_PER_ELEMENT Returns a number value of the element size for the different Float64Array objects. |
Float64Array.name Returns the string value of the constructor name (e.g, "Float64Array"). |
Float64Array[@@species] The constructor function used to create derived objects. |
Float64Array.prototype Prototype for Float64Array objects. |
Item Description |
---|
Float64Array.from() Creates a new Float64Array from an array-like or iterable object. See also Array.from(). |
Float64Array.of() Creates a new Float64Array with a variable number of arguments. See also Array.of(). |
Item |
---|
Float64Array.prototype.buffer Returns the ArrayBuffer referenced by the typed array. |
Float64Array.prototype.byteLength Returns the length (in bytes) of the typed array. |
Float64Array.prototype.byteOffset Returns the offset (in bytes) of the typed array from the start of its ArrayBuffer. |
Float64Array.prototype.length Returns the number of elements held in the typed array. |
Float64Array.prototype.copyWithin() Copies a sequence of array elements within the array. |
---|
Float64Array.prototype.entries() Returns a new Array Iterator object that contains the key/value pairs for each index in the array. |
Float64Array.prototype.every() Tests whether all elements in the array pass the test provided by a function. |
Float64Array.prototype.fill() Fills all the elements of an array from a start index to an end index with a static value. |
Float64Array.prototype.filter() Creates a new array with all of the elements of this array for which the provided filtering function returns true. |
Float64Array.prototype.find() Returns the found value in the array, if an element in the array satisfies the provided testing function, or undefined if not found. |
Float64Array.prototype.findIndex() Returns the found index in the array, if an element in the array satisfies the provided testing function or -1 if not found. |
Float64Array.prototype.forEach() Calls a function for each element in the array. |
Float64Array.prototype.includes() Determines whether a typed array includes a certain element, returning true or false as appropriate. |
Float64Array.prototype.indexOf() Returns the first (least) index of an element within the array equal to the specified value, or -1 if none is found. |
Float64Array.prototype.join() Joins all elements of an array into a string. |
Float64Array.prototype.keys() Returns a new Array Iterator that contains the keys for each index in the array. |
Float64Array.prototype.lastIndexOf() Returns the last (greatest) index of an element within the array equal to the specified value, or -1 if none is found. |
Float64Array.prototype.map() Creates a new array with the results of calling a provided function on every element in this array. |
Float64Array.prototype.reduce() Apply a function against an accumulator and each value of the array (from left-to-right) as to reduce it to a single value. |
Float64Array.prototype.reduceRight() Apply a function against an accumulator and each value of the array (from right-to-left) as to reduce it to a single value. |
Float64Array.prototype.reverse() Reverses the order of the elements of an array - the first becomes the last, and the last becomes the first. |
Float64Array.prototype.set() Stores multiple values in the typed array, reading input values from a specified array. |
Float64Array.prototype.slice() Extracts a section of an array and returns a new array. |
Float64Array.prototype.some() Returns true if at least one element in this array satisfies the provided testing function. |
Float64Array.prototype.sort() Sorts the elements of an array in place and returns the array. |
Float64Array.prototype.subarray() Returns a new Float64Array from the given start and end element index. |
Float64Array.prototype.values() Returns a new Array Iterator object that contains the values for each index in the array. |
Float64Array.prototype.toLocaleString() Returns a localized string representing the array and its elements. |
Float64Array.prototype.toString() Returns a string representing the array and its elements. |
Float64Array.prototype[@@iterator]() Returns a new Array Iterator object that contains the values for each index in the array. |