From f68bdadae9dad1c65e56c49e0587a4fd7a9a15c8 Mon Sep 17 00:00:00 2001 From: RameshChoudhary Date: Thu, 24 Mar 2016 04:55:02 +0530 Subject: [PATCH] Added comments. --- lib/config-loader.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/config-loader.js b/lib/config-loader.js index e04ce43..3789b85 100644 --- a/lib/config-loader.js +++ b/lib/config-loader.js @@ -291,6 +291,7 @@ function mergeArrays(target, config, keyPrefix) { function mergeArraysDiffLength(target, config) { var newTarget = _.cloneDeep(target, true); + //modifies the target array with the union of both the target and config arrays. Array.prototype.splice.apply(target, [0, target.length].concat(_.union(newTarget, config))); }