This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function merge(json) { | |
var sources = [].slice.call(arguments, 1); | |
sources.forEach(function (source) { | |
for (var property in source) { | |
json[property] = source[property]; | |
} | |
}); | |
return json; | |
} | |
// merge(json1, json2, json3) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function () { | |
var self = {}; | |
self.run = function () { | |
console.log("Hello I'm a method"); | |
}; | |
return self; | |
}; | |
/* |