imports/vx/both/code/util.js
/**
     * Given two objects, return an object that represents the differences
     * between the two.
     *
     * @param {object} objectOne Object one.
     * @param {object} objectTwo Object two.
     * @param {array} ignoreNames Array of property names to ignore.
     * @return {object} Object consisting solely of those properties that differ between the two objects.
     */
Given two objects, return an object that represents the differences
between the two.

@param {object} objectOne Object one.
@param {object} objectTwo Object two.
@param {array} ignoreNames Array of property names to ignore.
@return {object} Object consisting solely of those properties that differ between the two objects.
Given two objects return an object that represents the differences between the two . @param { object } objectOne Object one . @param { object } objectTwo Object two . @param { array } ignoreNames Array of property names to ignore . @return { object } Object consisting solely of those properties that differ between the two objects .
objectDifferences(objectOne, objectTwo, ignoreNames) {
        ignoreNames = ignoreNames || []
        return _.reduce(objectOne, (result, value, key) => {
            if (ignoreNames.includes(key)) {
                return result
            }
            if (_.isEqual(value, objectTwo[key])) {
                return result
            }
            result[key] = value
            return result
        }, {})
    }
objectDifferences ( objectOne , objectTwo , ignoreNames ) { ignoreNames = ignoreNames || [ ] return _ . reduce ( objectOne , ( result , value , key ) => { if ( ignoreNames . includes ( key ) ) { return result } if ( _ . isEqual ( value , objectTwo [ key ] ) ) { return result } result [ key ] = value return result } , { } ) }
Given two objects, return an object that represents the differences
 between the two.
Given two objects return an object that represents the differences between the two .