maths: add extend(x, y) for merging two objects (#387)

This commit is contained in:
jean-emmanuel 2018-10-15 22:50:19 +02:00
parent 65f9dbb011
commit 87dc9e98dd
3 changed files with 4 additions and 0 deletions

View file

@ -88,6 +88,7 @@ module.exports = {
length: function(x) { return x.length },
values: function(x) { return Object.values(x) },
keys: function(x) { return Object.keys(x) },
extend: function(x, y) { return Object.assign(x, y) },
timestamp: function() { return Date.now() },
// basic relationnal to keep alphabetical string comparison (v4 change)
equal: function(a, b) { return a == b },