src/common.js
function enabled(name) {
		if (name[name.length - 1] === '*') {
			return true;
		}

		let i;
		let len;

		for (i = 0, len = createDebug.skips.length; i < len; i++) {
			if (createDebug.skips[i].test(name)) {
				return false;
			}
		}

		for (i = 0, len = createDebug.names.length; i < len; i++) {
			if (createDebug.names[i].test(name)) {
				return true;
			}
		}

		return false;
	}
function enabled(name) {
		if (name[name.length - 1] === '*') {
			return true;
		}

		let i;
		let len;

		for (i = 0, len = createDebug.skips.length; i < len; i++) {
			if (createDebug.skips[i].test(name)) {
				return false;
			}
		}

		for (i = 0, len = createDebug.names.length; i < len; i++) {
			if (createDebug.names[i].test(name)) {
				return true;
			}
		}

		return false;
	}
function enabled ( name ) { if ( name [ name . length - 1 ] === '*' ) { return true ; } let i ; let len ; for ( i = 0 , len = createDebug . skips . length ; i < len ; i ++ ) { if ( createDebug . skips [ i ] . test ( name ) ) { return false ; } } for ( i = 0 , len = createDebug . names . length ; i < len ; i ++ ) { if ( createDebug . names [ i ] . test ( name ) ) { return true ; } } return false ; }
Returns true if the given mode name is enabled, false otherwise.

@param {String} name
@return {Boolean}
@api public
Returns true if the given mode name is enabled false otherwise .