Constructor
# new StrictArray(acceptedTypes)
Creates a strict array that only accepts one type of element
Parameters:
Name | Type | Description |
---|---|---|
acceptedTypes | string | The type of element that the array should accept |
- Since:
- v2.4.0
- Source:
Extends
- Array
Methods
# push(…el) → {array}
Push a value to the array
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
el | * | <repeatable> | The value to push to the array |
- Source:
Returns:
Returns the array
- Type
- array
# unshift(…el) → {array}
Push a value to the front of the array
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
el | * | <repeatable> | The value to push to the array |
- Source:
Returns:
Returns the array
- Type
- array