new Dimensions(arrayOrNumber-)
Represents the dimensionality of a type.
Parameters:
Name | Type | Description |
---|---|---|
arrayOrNumber- |
Array | number | Array whose entries represent the number of dimensions of each index -or- for convenience, a number that represents the dimensions of an object with one index |
Extends
- Array
Methods
equals(dimensions) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
dimensions |
Dimensions | The Dimensions to compare this Dimensions to. |
Returns:
True if the Dimensions are equal, false otherwise.
- Type
- boolean
set(array) → {Dimensions}
Parameters:
Name | Type | Description |
---|---|---|
array |
Array | The array whose entries will be set in this Dimensional. |
Returns:
This Dimensions.
- Type
- Dimensions