Methods
(static) split(arr, func, keepSplitedValueopt) → {Array.<Array>}
Split array into multiple arrays by specified condition.
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. |
- Source
Returns:
Splited array.
- Type:
- Array.<Array>
Type Definitions
splitCallback(value)
Return true at the split point.
Parameters:
Name | Type | Description |
---|---|---|
value | * |
- Source