This file contains hidden or 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 (doc, req) { | |
var findTheChanges = function (prevK, obj) { | |
var arr = []; | |
for (var key in obj) { | |
var prevKey = prevK || ''; | |
if (obj.hasOwnProperty(key)) { | |
var value = obj[key]; | |
// If its an Object dig deeper. | |
if (value !== null && | |
typeof value === 'object' && |