API Documentation for: 0.11.8
Show:

window.Array Class

Defined in: window.Array:8
Module: platypus

Add methods to Array

Methods

Array.recycle

(
  • instance
)

Defined in Array.recycle:90

Available since 0.7.1

Save instance for reuse.

Parameters:

  • instance Array

    The instance to recycle.

Array.setUp

(
  • [item]
)

Defined in Array.setUp:104

Available since 0.7.1

Create a new instance or reuse an old instance if available.

Parameters:

Returns:

Array

greenSlice

()

Defined in greenSlice:38

Slices, but uses a recycled array. Note that this slice does not accept parameters and makes a shallow copy of the original array.

Returns:

Array

greenSplice

()

Defined in greenSplice:60

Splices, but only removes a single item and returns the item itself, not an array.

Returns:

Array

recycle

(
  • [depth]
)

Defined in recycle:97

Available since 0.7.1

Save instance for reuse.

Parameters:

  • [depth] Number optional

    The dimensions of the array.

union

() Array chainable

Defined in union:14

Merges a given array into the current array without duplicating items.

Returns: