lib/index.js
function deepInspect(the_object) {
  var out = the_object
  if (getConstructorName(the_object) === "Array") {
    out = keyCompare(out)
  } else if (getConstructorName(the_object) === "Object") {
    Object.keys(out).forEach(function(key) {
      if (_.isArray(out[key])) {
        out[key] = keyCompare(out[key])
      } else if (_.isObject(out[key])) {
        out[key] = deepInspect(out[key])
      } else {
        // do nothing.
      }
    })
  }
  return out
}
function deepInspect(the_object) {
  var out = the_object
  if (getConstructorName(the_object) === "Array") {
    out = keyCompare(out)
  } else if (getConstructorName(the_object) === "Object") {
    Object.keys(out).forEach(function(key) {
      if (_.isArray(out[key])) {
        out[key] = keyCompare(out[key])
      } else if (_.isObject(out[key])) {
        out[key] = deepInspect(out[key])
      } else {
        // do nothing.
      }
    })
  }
  return out
}
function deepInspect ( the_object ) { var out = the_object if ( getConstructorName ( the_object ) === "Array" ) { out = keyCompare ( out ) } else if ( getConstructorName ( the_object ) === "Object" ) { Object . keys ( out ) . forEach ( function ( key ) { if ( _ . isArray ( out [ key ] ) ) { out [ key ] = keyCompare ( out [ key ] ) } else if ( _ . isObject ( out [ key ] ) ) { out [ key ] = deepInspect ( out [ key ] ) } else { // do nothing. } } ) } return out }
Will recursively inspect the object for arrays that need to be
sorted.
Will recursively inspect the object for arrays that need to be sorted .