Split a list of nodes based on whether splitFunc returns true. If onlySplitOnFirstOccurrence is set to true in the options object, then there will be at most two segments returned.
splitFunc
true
onlySplitOnFirstOccurrence
options
Optional
Generated using TypeDoc
Split a list of nodes based on whether
splitFunc
returnstrue
. IfonlySplitOnFirstOccurrence
is set to true in theoptions
object, then there will be at most two segments returned.