This could be condensed if using an every(...) statement (if desired):

return Object.keys(textStyle).every(function(key) { return paragraphStyle[key] === textStyle[key]; });