Skip to content

demitchell14/BackstoryTrivia

Repository files navigation

Trivia Manager Repository

Socket.IO Examples

/**
* Deep diff between two object, using lodash
* @param  {Object} object Object compared
* @param  {Object} base   Object to compare with
* @return {Object}        Return a new object who represent the diff
*/
function difference(object, base) {
    function changes(object, base) {
        return _.transform(object, function(result, value, key) {
            if (!_.isEqual(value, base[key])) {
                result[key] = (_.isObject(value) && _.isObject(base[key])) ? changes(value, base[key]) : value;
            }
        });
    }
    return changes(object, base);
}

Find instances of console.log without console.(?<!console\.)log\((.*)\)

Find instance of console.log console\.log\((.*)\)

About

Backstory Trivia server + react

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages