:people_holding_hands: @iterable-iterator/group
Iterable items grouping for JavaScript. See docs.
:warning: Depending on your environment, the code may require
regeneratorRuntime
to be defined, for instance by importing regenerator-runtime/runtime.
import {group} from '@iterable-iterator/group';
import {identity} from '@functional-abstraction/operator';
group( identity , "AAAABBBCCAABB" ) ; // [ A AAAA ] [ B BBB ] [ C CC ] [ A AA ] [ B BB ]