Closed OEvgeny closed 8 years ago
I'm looking for a good way to merge immutable array with a new one I think it will be really cool to do things like so:
/* storeUsers = [{id:0, name: 'James'}, undefined, {id:2, name:'Jane'}] */ let users = Immutable(storeUsers); let newUsers = [null, {id:1, name: 'Jack'}]; users = users.merge(newUsers);
I think it will be easy to implement, and I can try with pull-request. What are you thought on this?
Thanks for taking the time to write this up, but I prefer to keep the API small and compact, so I'd rather not add this. :smiley:
@rtfeldman good point :smile:
I'm looking for a good way to merge immutable array with a new one I think it will be really cool to do things like so:
I think it will be easy to implement, and I can try with pull-request. What are you thought on this?