- Source:
Methods
(static) split(arr, func, keepSplitedValueopt) → {Array.<Array>}
Split array into multiple arrays by specified condition.
- Source:
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
arr |
Array
|
Target array. |
||
func |
splitCallback
|
Callback to split array. |
||
keepSplitedValue |
boolean
|
<optional> |
false |
Keep splited value. The split point is before the matched value. |
Returns:
- Type:
-
Array.<Array>
Splited array.
Type Definitions
splitCallback(value)
Return true at the split point.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
*
|