function getClassOf(value) {
    return value == null
      ? capitalize(value)
      : toString.call(value).slice(8, -1);
  }
Gets the internal `[[Class]]` of a value.

@private
@param {*} value The value.
@returns {string} The `[[Class]]`.