UNPKG

@netology-group/account

Version:
9 lines 330 B
import debug from 'debug'; export var Debug = function Debug(ns) { var invariant = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; if (typeof ns !== 'string') throw new TypeError('Namespace should be a string'); if (invariant) return function () { return undefined; }; return debug(ns); };