3 ms·
I was experimenting with the idea of adding 'slices'. They let you do map like transformations on arrays. https://github.com/icholy/JsonPatch.js https://github.
by icholy 12y ago
I was experimenting with the idea of adding 'slices'. They let you do map like transformations on arrays. https://github.com/icholy/JsonPatch.js https://github.com/icholy/JsonPatch.js
/foo/1:3/bar
translates to
foo.slice(1, 3).map(function (obj) { return obj.bar; });