code: function () {
      return (
        typeof console !== "undefined" &&
        console.log && console.warn && console.error && (
          /* Chrome, Safari, Opera, IE 10. */
          P_OBJECT.toString.call(console) === "[object Console]" ||
          /* Node.js, Firefox, IE 8–9. */
          P_OBJECT.toString.call(console) === "[object Object]"
        )
      )
    }
docs: /* Checks the existence of the `console` object in the environment.
  The `toString()` check might be a bit overkill…