Package Exports
- es2024.object
- es2024.object/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (es2024.object) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
es2024.object
Polyfills for the new methods of Object in ES2024.
Installation
npm i es2024.objectUsage
import 'es2024.object';
const items = [
{ type: 'number', value: 0 },
{ type: 'number', value: 1 }
];
Object.groupBy(items, ({ type }) => type);
/* {
number: [
{
type: 'number',
value: 0
},
{
type: 'number',
value: 1
}
]
} */