Class RecycableArray<T>

Wraps a regular Javascript Array and offers very limited functionality geared solely towards avoiding garbage colletion.

Author

Jirka Dell'Oro-Friedl, HFU, 2021

Link

https://github.com/JirkaDellOro/FUDGE/wiki/Recycler

Type Parameters

  • T

Constructors

Accessors

Methods

  • Recycles the object following the last in the array and increases the array length It must be assured, that none of the objects in the array is still in any use of any kind!

    Returns IterableIterator<T>

  • Returns a copy of the array sorted according to the given compare function

    Parameters

    • _sort: ((a, b) => number)
        • (a, b): number
        • Parameters

          Returns number

    Returns T[]