formula/mathjs: re-fix array to zero-based index instead of one-based index

This commit is contained in:
jean-emmanuel 2018-01-03 11:34:15 +01:00
parent 6cd29dbdd8
commit 80c3ab8aa0

View file

@ -75,7 +75,8 @@ module.exports = {
matrix: 'Array'
})
// set math's parser array index base to zero
math.expression.transform = Object.create(math)
math.expression.mathWithTransform = Object.assign({}, math)
return math
}()
}