maths: add length function

This commit is contained in:
jean-emmanuel 2018-03-06 01:29:45 +01:00
parent 982f8f2585
commit dfa0cb3150
2 changed files with 2 additions and 0 deletions

View file

@ -84,6 +84,7 @@ module.exports = {
}
return dec ? int + '.' + dec : int
},
length: function(x) { return x.length },
// basic relationnal to keep alphabetical string comparison (v4 change)
equal: function (a, b) { return a == b },
unequal: function (a, b) { return a != b },