@iterable-iterator/group
v1.0.1
Published
Iterable items grouping for JavaScript
Downloads
245
Readme
: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 ]