@febin52/group-by-fast
v1.0.0
Published
Group array elements by key or accessor function.
Maintainers
Readme
🗂️ @febin52/group-by-fast
Group array items by key.
import { groupBy } from '@febin52/group-by-fast';
groupBy([6.1, 4.2, 6.3], Math.floor); // { '4': [4.2], '6': [6.1, 6.3] }