Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Arno Welzel Newsgroups: comp.lang.javascript Subject: Re: JavaScript now supports 'groupBy` Date: Sun, 3 Sep 2023 17:39:19 +0200 Lines: 16 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: individual.net i9pfLQjWyEPqjKrtJP19ogtHKqT1orb1Rjgx6+jUvyo00Gu3qf Cancel-Lock: sha1:tEsKuxne8xqvKKTkh3pmpDD8bKA= sha256:WOs1eeSUmb3ZqfH2kD/fxDilJ3ciwKua3j4ytlTCMMY= Content-Language: de-DE In-Reply-To: Xref: csiph.com comp.lang.javascript:41425 Michael Haufe (TNO), 2023-08-21 20:42: > In case you missed it, JavaScript finally implemented a groupBy static method for Object and Map: > > Map.groupBy(iterable, callbackFn) > Object.groupBy(iterable, callbackFn) Which is not widely supported yet: -- Arno Welzel https://arnowelzel.de