2.9.1.3.4.5 DataView.prototype.GetUInt16(byteOffset, littleEndian)

Gets the Uint16 value at offset byteOffset in the DataView, using the provided endianness.

  1. Let O be ToObject(this)

  2. Let isLittleEndian be ToBoolean(littleEndian) if provided, else false

  3. If the [[Class]] internal property of O is not "DataView", raise a TypeError.

  4. Return GetValue(byteOffset, isLittleEndian, Uint16)