index.js
function isDiffable (val) {
  switch (getType(val)) {
    case 'array':
    case 'object':
      return true

    case 'string':
      return val.length >= 40 || (val.trim().match(/\n/g) || []).length >= 1

    default:
      return false
  }
}
function isDiffable (val) {
  switch (getType(val)) {
    case 'array':
    case 'object':
      return true

    case 'string':
      return val.length >= 40 || (val.trim().match(/\n/g) || []).length >= 1

    default:
      return false
  }
}
function isDiffable ( val ) { switch ( getType ( val ) ) { case 'array' : case 'object' : return true case 'string' : return val . length >= 40 || ( val . trim ( ) . match ( / \n / g ) || [ ] ) . length >= 1 default : return false } }
Return whether value should be diffed.

@param {*} val Value to test
@return {boolean}
Return whether value should be diffed .