La propriété TypedArray.name
est une chaîne de caractères représentant le nom du constructeur du tableau typé.
Attributs de TypedArray.name |
|
---|---|
Écrivable | Non |
Énumérable | Non |
Configurable | Non |
Syntaxe
TypedArray.name;
Description
Les objets TypedArray
varient en fonction du nombre d'octets correspondant pour chaque élément du tableau et de la façon dont les octets sont interprétés. La propriété name
permet de décrire le type de données du tableau. La première partie du nom peut être Int
pour les tableaux d'entiers (Integer) ou Uint
pour les tableaux d'entiers non signés (Unsigned Integer) ou Float
pour les nombres décimaux (floating). La deuxième partie correspond au nombre de bits de chaque élément. Enfin, la troisième composante du nom est Array
, ClampedArray
étant un cas spécifique. Voir la page Uint8ClampedArray
pour plus d'informations sur ce tableau typé.
Exemples
Int8Array.name; // "Int8Array" Uint8Array.name; // "Uint8Array" Uint8ClampedArray.name; // "Uint8ClampedArray" Int16Array.name; // "Int16Array" Uint16Array.name; // "Uint16Array" Int32Array.name; // "Int32Array" Uint32Array.name; // "Uint32Array" Float32Array.name; // "Float32Array" Float64Array.name; // "Float64Array"
Spécifications
Spécification | Statut | Commentaires |
---|---|---|
ECMAScript 2015 (6th Edition, ECMA-262) La définition de 'TypedArray.name' dans cette spécification. |
Standard | Définition initiale. |
ECMAScript 2016 Draft (7th Edition, ECMA-262) La définition de 'TypedArray.name' dans cette spécification. |
Projet |
Compatibilité des navigateurs
Fonctionnalité | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Support simple | 7.0 | 4.0 (2) | 10 | 11.6 | 5.1 |
Fonctionnalité | Android | Chrome pour Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Support simple | 4.0 | (Oui) | 4.0 (2) | 10 | 11.6 | 4.2 |