Comments are good

This commit is contained in:
Clément GOUIN
2019-06-20 13:15:51 +02:00
parent c755ea939d
commit 69d05e3900
3 changed files with 50 additions and 1 deletions
+6
View File
@@ -1,6 +1,12 @@
const refConfig = require('./config.default.json');
const fs = require('fs');
/**
* Merge resources by reading object keys and keeping reference value only if it's type is different from the source
* @param ref - reference object/value
* @param src - source object/value
* @returns {*}
*/
const merge = (ref, src) => {
if (typeof ref !== typeof src) {
return ref;