🧑🤝🧑 @iterable-iterator/group
Iterable items grouping for JavaScript. See docs.
⚠️ Depending on your environment, the code may requireregeneratorRuntime
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 ]