This translation is incomplete. Please help translate this article from English.

This is an experimental technology, part of the ECMAScript 2016 (ES7) proposal.
Because this technology's specification has not stabilized, check the compatibility table for usage in various browsers. Also note that the syntax and behavior of an experimental technology is subject to change in future version of browsers as the spec changes.

El mètode estàtic SIMD.%type%.extractLane() retorna el valor d'una ruta donada.


SIMD.Float32x4.extractLane(t, index)
SIMD.Float64x2.extractLane(t, index)

SIMD.Int8x16.extractLane(t, index)
SIMD.Int16x8.extractLane(t, index)
SIMD.Int32x4.extractLane(t, index)

SIMD.Bool8x16.extractLane(t, index)
SIMD.Bool16x8.extractLane(t, index)
SIMD.Bool32x4.extractLane(t, index)


Una instància d'un tipus SIMD corresponent.
Un nombre índex per la ruta d'extreure.

Return value

The value of the extracted lane.

Errors thrown

  • A TypeError, si t is not the corresponding SIMD type.
  • A RangeError, if the lane index is out of bounds.


var t = SIMD.Float32x4(1, 2, 3, 4);
SIMD.Float32x4.extractLane(t, 2); 
// 3


Especificació Estat Comentaris
The definition of 'SIMDConstructor.extractLane' in that specification.
Draft Definició inicial.

Compatibilitat amb navegadors

Característica Chrome Firefox (Gecko) Internet Explorer Opera Safari
Suport bàsic Not supported Nightly build Not supported Not supported Not supported
Característica Android Chrome per Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Suport bàsic Not supported Not supported Nightly build Not supported Not supported Not supported

Vegeu també

Document Tags and Contributors

 Contributors to this page: llue
 Last updated by: llue,