Follow

javascript 

very close to getting `dense()´ to work (as a proxy not a copying function) but alas it is time for bed

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"

javascript 

this is almost certainly a profoundly difficult-to-optimize way of doing this but i love giving browser manufacturers impossible problems to solve

Sign in to participate in the conversation
📟🐱 GlitchCat

A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.