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

@private
@param {*} 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`.