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 Swift, Java, TypeScript, Node.js 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.
-
RustyBox v0.4.0: Zero-Alloc O(log N) Dispatch, 8.24x HW SHA-2, 6.64x Grep & RFC 10008 Agent Search
Inside RustyBox v0.4.0: replacing 399 startup heap allocations with compile-time sorted dispatch tables, bypassing StdoutLock's LineWriter for 1,631 MB/s grep and 1,317 MB/s SHA-256, cutting rustybox-core release size by 6.4%, and serving RFC 10008 HTTP QUERY search.
-
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.
-
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.
-
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
-
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…
-
MacAdmins.news: Home for the Holidays
The MacAdmins.news Thanksgiving issue is packed with articles, security news, and updates.
-
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.
-
-
-
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.
-
-
Fluid Type Scales
How to get rid of almost all of the breakpoints in CSS.
-
b0rk: Notes on using a single-person Mastodon server
On my reading list: [Wayback/Archive] Notes on using a single-person Mastodon server Via [Wayback/Archive] Julia Evans on Twitter: “some notes on running a single-person Mastodon server” –jeroen
-
Skills, Slash Commands, Subagents: When I Use Which in Claude Code
I used to cram everything into custom slash commands.
-
Day 56: Headscale – Your Own Tailscale Control Plane in Docker – 7 Days of Docker
Tailscale solved peer-to-peer networking so well that most people stopped thinking about it.
-
Comments in JSON: Can You Add Them? (Workarounds)
JSON has no comment syntax.
-
OmniLLL Part 2: 1.58-Bit Ternary RLVR Diffs Beat Dense FP16 GRPO (Walsh-Hadamard PTQ & Omnispherepop v1.1.0)
Empirical Colab T4 findings on Qwen2.5-1.5B-Instruct: why compressing a Dr. GRPO reasoning diff to 1.58-bit Omnispherepop trits doubles base accuracy and beats FP16 GRPO (25.0% vs 20.8%), how 1D/2D Walsh-Hadamard cuts KL by 13x, and what landed in ospop v1.1.0.
-
#499 The Securing Rails Applications Guide
About the latest Securing Rails Guide, as of writing 8.0+ Edge merged on 2026-11-20.
-
Why My Kids are Learning to Program - The New Baseline
An AI agent can now build a Codename One app and submit it to the App Store and Google Play for someone who has never written a line of Java.
-
datasette-mcp 0.4
Release: datasette-mcp 0.4
-
How to see the exception type at a breakpoint in a catch block in Visual Studio
Hovering ex in catch (Exception ex) shows the declared type, not the real one.
-
DecisionMachines3000: Ask Several Decision Models the Same Question
DecisionMachines3000 is an open source page for asking decision models such as Jev typed questions about text, data, or images, and comparing what each provider answers, question by question.
-
How to keep a SemaphoreSlim concurrency limit when an async call ignores its CancellationToken and hangs
A timeout around a call that ignores cancellation does not stop it.
-
Why a Flutter FilterChip flashes a color that is not splashColor when selected, and how to remove it
In Material 3, a FilterChip, ChoiceChip or InputChip starts its selection fade from ColorScheme.secondaryContainer, not from its background color, so a custom selectedColor fades in from cyan or pink.
RSS for this view · OPML of the feeds with posts in this view (up to 350 feeds)