How to flatten arrays in JavaScript with flat() and flatMap(): the depth argument, Infinity, empty slots, arrays of objects and the map + filter trick.
Latest in SQL, Redis, Go, C++, Java, JavaScript, React, Terraform and PHP
author · site-
JavaScript flat() and flatMap(): Flatten Arrays
-
AI answers link to the exact sentence. Your site can too
AI answers link straight to the sentence they quote.
-
A Million Rows and Live Excel Formulas, Inside Your Own App
DataGrid scrolls a million rows with frozen columns, grouping, aggregates, editing and a tree mode.
-
Mapping the Wind with Planes
The Flights in the Air Right Now map from Tailodds displays two things: the live positions of aircraft flying over the United States and the wind conditions at cruising altitude.
-
Tensile by Horology
Tensile by Horology, a 64k intro for the PC by the three members of Horology, computer science students at ETH Zurich, released at Revision 2013 in Saarbrücken (29 March to 1 April 2013) and second of six in the PC 64k intro competition with 1,019 points, behind Turtles all the…
-
Fix: TimeZoneNotFoundException: The time zone ID was not found on the local computer (.NET on Linux and Docker)
On Linux, FindSystemTimeZoneById reads /usr/share/zoneinfo.
-
Skimmers que pasan por debajo de la CSP con WebRTC
Puedes tener la valla del huerto perfecta, alta, sin huecos y con una puerta que sólo abres tú, y aun así un día encontrarte las zanahorias mordisqueadas.
-
Las skills de Convex y lo que le contaban al agente a tus espaldas
El cuco no hace nido: pone el huevo en el de otro pájaro, y el carricero, que no sospecha nada, lo empolla y alimenta a la cría como si fuera suya.
-
Composer 2.11 Cooldown Policy: Delay New Package Versions Safely
Composer 2.11 adds a cooldown policy that holds back freshly published package versions.
-
Agent Framework PyPI 1.26.1 and 1.26.2 Were Malicious, and the GitHub Repo Is Offline
Two unauthorized agent-framework releases on PyPI ran a credential stealer from a .pth file on every Python start.
-
datasette-charts 0.4a0
Release: datasette-charts 0.4a0
-
Closing and Reopening My Kinect
My Kinect streamed, then failed to close and reopen.
-
@js@bsd.cafe it doesn't not :)...
@js@bsd.cafe it doesn't not :)
-
@js@bsd.cafe # halt -p...
@js@bsd.cafe # halt -p
-
Review Metalio E-INK4 Plus e-reader
When Xteink brought out their original X4 device in late 2025, they effectively created the sub-4.5-inch, sub-$100 “microreader” category.
-
Geospatial AI Has a Benchmark Problem. This Paper Finally Says the Quiet Part Out Loud.
The geospatial AI community has spent the past several years building increasingly sophisticated foundation models for Earth observation.
-
Functional Programming in TypeScript
Functional programming offers powerful tools for building robust, maintainable software, and Software Development as a whole has moved more and more towards employing a functional style in its programs—yet comprehensive guides for normal work in real-world applications are…
-
Why My Local Dashboard Has a Publisher, a Frontend, and an API
I wanted a dashboard I could leave running on a big TV.
-
Using Repowise to Contribute to Repowise
In my last post I tried Repowise on a small repo and pulled embeddinggemma into Ollama for semantic search.
-
iOS 27.3: Face Unlock for iPhone Duo
Chance Miller: This isn’t Face ID.
-
Google Ties Search in Schools to Gemini
Victor Tangermann (Hacker News): But it’s a fraught relationship that’s now seriously being tested as teachers start to suspect that the AI use is wreaking havoc on the impressionable minds of their students.
-
Temporary Relationships – Speed Dating for Programmers
Have you ever been on a speed date?
-
Forgejo Packages: Docker and npm Registry
Forgejo already ships a Docker registry and a private npm registry.
-
What Raw Data to Request Before Trusting an AI Visibility Dashboard
An AI visibility dashboard gives you a score for how often ChatGPT and other AI assistants mention your brand.
-
workstation with gaming igpu vs embedded PC: what is (currently) the fasted CPU integrated GPU? small AI datacenter at home for local llm experiments
for purely energy efficient gaming that can be upgraded again and again go for workstations 😀 are nice no doubt medium range: is a good start for a fast solid workstation/gaming rigsearch for Ryzen 7 8700G for faster iGPU this […]
-
Tokens, constraints, and Black+Decker
Sebastian De Deyne uses Black+Decker's move to computerized planning to show why new technology calls for rethinking old processes.
-
-
-
Concrete Problems, ten years on
A tour of AI safety, hung on Amodei et al. (2016): what the paper asked, what became of it, and what it left out.
-
RSS for this view · OPML of the feeds with posts in this view (up to 938 feeds)