You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
unfortunately, not available in Node, so React won't transpile. Can't use in React.
Works in React web
Polyfill exists for React native, so might work in Node.js too.
con: no way to exclude stuff from being grouped. workaround: return null instead of a string to collect non-participants. The final object has a null key then
The text was updated successfully, but these errors were encountered:
sanjarcode
changed the title
Object.groupBy available in browsers, polyfill needed for Node
Object.groupBy available in browsers, polyfill needed for Node, RN
Nov 19, 2023
Object.groupBy
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/groupBy
unfortunately, not available in Node,
so React won't transpile.Can't use in React.Works in React web
Polyfill exists for React native, so might work in Node.js too.
con: no way to exclude stuff from being grouped. workaround: return
null
instead of a string to collect non-participants. The final object has anull
key thenThe text was updated successfully, but these errors were encountered: