Path: csiph.com!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Mild Shock Newsgroups: comp.lang.javascript Subject: Re: JavaScript now supports 'groupBy` Date: Mon, 4 Sep 2023 01:43:39 +0200 Message-ID: References: <7bc9bbab-16dd-40e9-ba65-9377c0ea2fc3n@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sun, 3 Sep 2023 23:43:38 -0000 (UTC) Injection-Info: solani.org; logging-data="671194"; mail-complaints-to="abuse@news.solani.org" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0 SeaMonkey/2.53.17 Cancel-Lock: sha1:0Aft+A92WKKzhCv58J4kAKmuv6c= X-User-ID: eJwFwQkBwDAIA0BLvKHI6UjxL2F36VBMBRKRm3utZECKdn+g013KqqItn0yWQb/gOXd6V0PncenxFI11/wE7khUL In-Reply-To: <7bc9bbab-16dd-40e9-ba65-9377c0ea2fc3n@googlegroups.com> Xref: csiph.com comp.lang.javascript:41426 Omg, the little italian was at it again. How cringe... What is he, a Bolchevik that is about to kill the Romanov Family? Julio Di Egidio schrieb: > On Monday, 21 August 2023 at 20:42:18 UTC+2, Michael Haufe (TNO) wrote: > >> In case you missed it, JavaScript finally implemented >> a groupBy static method for Object and Map > > You might have missed that it's neither decently supported, > nor, as for the enthusiasm, it has anything to do with the > aggregation operator by the same name, in fact, with any > aggregation at all: this "groupBy" is more of a "partitionBy" > and can be implemented in one line of code with an array > reduce over the input's keys. Indeed, I'd call it plain clutter. > > Julio >