function isClassOf(value, name) {
    return value != null && toString.call(value) == '[object ' + name + ']';
  }
Checks if an object is of the specified class.

@private
@param {Mixed} value The value to check.
@param {String} name The name of the class.
@returns {Boolean} Returns `true` if the value is of the specified class, else `false`.