formula: add object keys() and values() functions (#327)

This commit is contained in:
jean-emmanuel 2018-07-07 13:37:44 +02:00
parent b3b35cf3ce
commit 3732c67957
2 changed files with 4 additions and 0 deletions

View file

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