JSPM

es2024.object

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q27484F
  • License MIT

Polyfills for the new methods of `Object` in ES2024.

Package Exports

    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.object

    Usage

    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
        }
      ]
    } */