* adds arguments as properties to obj
(obj: {}, ...args)
| 19 | * adds arguments as properties to obj |
| 20 | */ |
| 21 | function extend(obj: {}, ...args) { |
| 22 | Array.prototype.slice.call(arguments, 1).forEach(function (source) { |
| 23 | if (source) { |
| 24 | for (let key in source) { |
| 25 | obj[key] = source[key]; |
| 26 | } |
| 27 | } |
| 28 | }); |
| 29 | return obj; |
| 30 | } |
| 31 | |
| 32 | /** |
| 33 | * gets a random int from 0-10000000000 |
no outgoing calls
no test coverage detected
searching dependent graphs…