Skip to content

Complete implementation of standard typed arrays #3

Description

@swiing

Current code only partially implements standard features of typed arrays. This issue provides a place to track progress and view it all in one shot.

PRs welcome!

Constructor

  • new TypedArray()
  • new TypedArray(length)
  • new TypedArray(typedArray)
  • new TypedArray(object)
  • new TypedArray(buffer): see here

Unrelevant (= won't implement)

  • new TypedArray(buffer, byteOffset): see here
  • new TypedArray(buffer, byteOffset, length): see here

Static properties

  • BYTES_PER_ELEMENT
  • name
  • get BitArray[@@species]

Static methods

  • from()
  • of()

Instance properties

  • buffer
  • byteLength
  • byteOffset
  • length

Instance methods

  • at(): see here for discussion
  • copyWithin()
  • entries()
  • every()
  • fill()
  • filter()
  • find()
  • findIndex()
  • forEach()
  • includes()
  • indexOf()
  • join()
  • keys()
  • lastIndexOf()
  • map()
  • reduce()
  • reduceRight()
  • reverse()
  • set()
  • slice()
  • some()
  • sort()
  • subarray()
  • values()
  • toString(): see here for note on implementation.
  • [@@iterator]()

Irrelevant (= won't implement)

  • toLocaleString(): there is no local variation to displaying 1s or 0s.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions