javascript Show more
very close to getting `dense()´ to work (as a proxy not a copying function) but alas it is time for bed
const s = [,,,];2 in s; // false
const d = dense(s);2 in d; // trued[2]; // undefined
s[2] = "value";s[2]; // "value"d[2]; // "value"
this is almost certainly a profoundly difficult-to-optimize way of doing this but i love giving browser manufacturers impossible problems to solve
A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.
javascript
const s = [,,,];
2 in s; // false
const d = dense(s);
2 in d; // true
d[2]; // undefined
s[2] = "value";
s[2]; // "value"
d[2]; // "value"