bilateralarray

An array-like object where the zero index is at the middle of the array. tracks left and right offsets as items are added

npm install bilateralarray
2 downloads in the last week
4 downloads in the last month

BilateralArray

An array-like object where the zero index is at the middle of the array. tracks left and right offsets as items are added

Methods

array.left(value, ...)

Add the specified values to the left side of the array.

array.right(value, ...)

Add the specified values to the right side of the array.

Members

array.length

Get the length of the array

array.offsetLeft

The number of items that have been added to the left

array.offsetRight

The number of items that have been added to the right

array.data

Access to the actual array

npm loves you