Polyfill for Object.groupBy: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object/groupBy
Object.groupBy
import {arrayToObject} from '@augment-vir/common';const result = arrayToObject( [ 'a', 'b', ], (value) => `key-${value}`,);// result is `{key-a: ['a'], key-b: ['b']}` Copy
import {arrayToObject} from '@augment-vir/common';const result = arrayToObject( [ 'a', 'b', ], (value) => `key-${value}`,);// result is `{key-a: ['a'], key-b: ['b']}`
Polyfill for
Object.groupBy
: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object/groupBy