dustingetz / react-cursor

Immutable state for React.js
1.03k stars 50 forks source link

add syntax sugar for remove-at-index #90

Closed dustingetz closed 8 years ago

dustingetz commented 8 years ago

.splice([[i, 1]]) means: starting at index i, remove one item and add nothing

dustingetz commented 8 years ago

And link to the react-with-addons splice documentation or something, the current state of removing-at-index for react-cursor is pretty bad https://facebook.github.io/react/docs/update.html#nested-collections

dustingetz commented 8 years ago

http://stackoverflow.com/questions/1394991/clojure-remove-item-from-vector-at-a-specified-location