maths: add extend(x, y) for merging two objects (#387)
This commit is contained in:
parent
51aefb7b94
commit
4a352efa00
3 changed files with 4 additions and 0 deletions
|
|
@ -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 },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue