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 f2be501509
commit f9dc4f3d9d

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
}()
}