zenika-open-source / immutadot

immutadot is a JavaScript library to deal with nested immutable structures.
https://immutadot.zenika.com
MIT License
178 stars 5 forks source link

Slice: explicit 0 index doesn't work #345

Closed nlepage closed 5 years ago

nlepage commented 5 years ago

Description

Specifying an explicit 0 index to the slice navigator doesn't work.

Only for bugs :bug:

Version : master

Expected behavior

get({ prop: [1, 2] }, 'prop[0:]')
// -> [1, 2]

Actual behavior

get({ prop: [1, 2] }, 'prop[0:]')
// -> []
nlepage commented 5 years ago

This is a regression in #337 so it is not in 2.0.0-alpha.1