The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/client/polyfills/objectFromEntries.ts

5 lines
240 B

Object.fromEntries =
Object.fromEntries ||
function fromEntries<T>(entries: Iterable<readonly [PropertyKey, T]>): { [k: string]: T } {
return [...entries].reduce((obj, { 0: key, 1: val }) => Object.assign(obj, { [key]: val }), {});
};