lib/index.js
function dottedDiff(val1, val2) {
	if (isScalar(val1) && isScalar(val2)) {
		return val1 === val2 ? [] : '';
	} else {
		return Object.keys(addDottedDiffFieldsToSet({}, '', val1, val2));
	}
}
function dottedDiff(val1, val2) {
	if (isScalar(val1) && isScalar(val2)) {
		return val1 === val2 ? [] : '';
	} else {
		return Object.keys(addDottedDiffFieldsToSet({}, '', val1, val2));
	}
}
function dottedDiff ( val1 , val2 ) { if ( isScalar ( val1 ) && isScalar ( val2 ) ) { return val1 === val2 ? [ ] : '' ; } else { return Object . keys ( addDottedDiffFieldsToSet ( { } , '' , val1 , val2 ) ) ; } }
Diffs two objects

@method dottedDiff
@static
@param {Mixed} val1 - the first value to diff
@param {Mixed} val2 - the second value to diff
@return {String[]} - an array of dot-separated paths to the shallowest branches
present in both objects from which there are no identical scalar values.
Diffs two objects