new ArrayStorage()
Methods
clear() → {void}
Returns:
- Type
- void
concat(items) → {void}
Parameters:
Name | Type | Description |
---|---|---|
items |
array | array items |
Returns:
- Type
- void
count() → {number}
Returns:
- number of items
- Type
- number
getItems() → {array}
Returns:
- items
- Type
- array
push(item) → {void}
Parameters:
Name | Type | Description |
---|---|---|
item |
object | new item |
Returns:
- Type
- void
shift() → {*}
removes first element and returns it
Returns:
- item
- Type
- *
unshift() → {*}
add elements to the beginning of array
Returns:
- new length of an array
- Type
- *