Skip to content
This repository has been archived by the owner on Jul 28, 2021. It is now read-only.

Array wrapping #5

Open
Rich-Harris opened this issue Apr 23, 2013 · 0 comments
Open

Array wrapping #5

Rich-Harris opened this issue Apr 23, 2013 · 0 comments

Comments

@Rich-Harris
Copy link
Owner

This syntax is minging:

state.set( 'data[3]', { foo: 'bar' });

// or even worse
state.set( 'data[' + state.get( 'data.length' ) + ']', { foo: 'bar' });

It would be much nicer to be able to use standard array mutator methods. We should wrap those methods so that a call to push is equivalent to the above.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant