LibArray

LibArray

642 Downloads

This is an implementation of a Javascript like array for numeric tables.

The following methodes are implemented:

  • concat
  • copyWithin
  • entries
  • every
  • fill
  • filter
  • find
  • findIndex
  • flat
  • flatMap
  • forEach
  • includes
  • indexOf
  • join
  • keys
  • lastIndexOf
  • map
  • pop
  • push
  • reduce
  • reduceRight
  • reverse
  • shift
  • slice
  • some
  • sort
  • splice
  • toLocaleString
  • toSource
  • toString
  • unshift
  • values

The full reference can be found at Array@MDN.

Usage:

To get a new array, simply call newArray() in your lua code.