Hacker News new | ask | show | jobs
by nawitus 4352 days ago
Why do you need a mechanism for that instead of using arrays?
1 comments

Instead of getting an array from storage, pushing a new item inside and then storing it again, it could be nice to have directly this small mechaniam built in to avoid this logic in the application.
Hmm, that's true. The library could monkey patch .push (etc.), but it wouldn't support setting the property directly with [index] (until Object.observe is mainstream enough).