npub14c…8rtan on Nostr: Oh wow, #javascript's Array type has nice stuff like flatMap, reduce etc., but no ...
Oh wow, #javascript's Array type has nice stuff like flatMap, reduce etc., but no method to pre/append an element and return a new array (or even the same one)?
Published at
2026-10-20 06:55:08 UTCEvent JSON
{
"id": "5cb08a9fb9e810eb38b4a8eb23279eb49a9f7e2206302f0ba5d92de69a5989e2",
"pubkey": "ae0cf5bfd224a63f32a62be4a67cf73d28ae7c27a401f627bbcb2bcc7733d526",
"created_at": 1792479308,
"kind": 1,
"tags": [
[
"t",
"javascript"
],
[
"proxy",
"https://fosstodon.org/@pmidden/117471923963304070",
"web"
],
[
"proxy",
"https://fosstodon.org/users/pmidden/statuses/117471923963304070",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://fosstodon.org/users/pmidden/statuses/117471923963304070",
"pink.momostr"
],
[
"-"
]
],
"content": "Oh wow, #javascript's Array type has nice stuff like flatMap, reduce etc., but no method to pre/append an element and return a new array (or even the same one)?",
"sig": "78098314f683f100c9d443a5ae55e83c7905c9715ed181d7de7bcc4a35a1bfa0e2bfb12a556293ffe0ef3248d0b15f9a1927943fa609db79b42c265a0bf9e4c0"
}