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 C++, iOS, Java, JavaScript, React, Kubernetes and HTML
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.
-
I realized that An email, calendar, and contacts all-in-one engine is exciting, actually
Pimalaya, an open-source engine for mail, contacts and calendars, shipped its first stable release and it runs everywhere.
-
Bill C–22 Would Require Providers to Keep Location Data They Do Not Currently Collect
Michael Geist: When I appeared before the House of Commons committee studying Bill C-22 in May, I warned that mandatory metadata retention would include cell tower data, creating the risk of a comprehensive surveillance map that could retroactively identify the locations of…
-
Meta Insiders Concerned Over A.I. Content Moderation Push
Aisha Down, the Guardian: This March, Meta announced it was “transforming our approach” by rolling out “more advanced AI systems” to moderate content across its apps, framing the change as a way to improve enforcement.
-
QuePaxa vs. Raft: WAN Consensus, or Why "Slow but Never Stops" Beats "Fast but Dies at the Slightest Jitter"
Starting from two structural dependencies—leader dependence and timeout-based failure detection—this article breaks down Raft's failure paths in wide-area networks, and the resilience QuePaxa gains from optional proposers, random priorities, and hedging.
-
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.
-
🔥 The first Paseo plugin I've actually found…
The first Paseo plugin I've actually found useful adds a clock that warns you when Claude's token cache has expired.
-
Just Me and my Writing
I'm offline—cut off from the world.
-
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.
-
pgembed: any Postgres version, side by side, no Docker
pgembed is a CLI and MCP server, from npm or NuGet, that runs real PostgreSQL servers of any version side by side, with no Docker and no system install.
-
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.
-
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
-
Know When You're Building the Machine
I spent more than 10 hours building an app to save seconds.
-
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
-
Polar Winter Is Here
Polar winter is here.
-
Inklings #035 📧
Spying vs. Espionage • Muse vs. Amazon • SpaceX vs. AI • Riemann vs. Everyone • iPadOS vs. macOS • Claude vs. Apple • Avengers vs. Dune
-
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…
-
Five Non-Leadership Books for Leaders
Foundation Trilogy (Isaac Asimov) — There was a decade when I read through this trilogy1 every year or so.
-
Unpatched Cacti Zero-Day (4HTTP2ROOT) Lets Guests Run Code: How to Protect Your Server
A Cacti zero-day lets anonymous guests run commands on Cacti 1.2.31, and there is no patch yet.
-
Why My Local Dashboard Has a Publisher, a Frontend, and an API
I wanted a dashboard I could leave running on a big TV.
-
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.
-
MobileSec #2: Recording your mic without permission, 8 ways into your iPhone, and 153 million stolen IDs
An iOS bug that recorded the mic with no permission and no orange dot, eight ways exploit kits reach iPhones, selfie sign-in at Google and TikTok, and why a real ID proves nothing.
RSS for this view · OPML of the feeds with posts in this view (up to 873 feeds)