Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

WaterLemons2k/es2024.object

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

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

Sponsor this project

Morty Proxy This is a proxified and sanitized view of the page, visit original site.