settings.js
function matchKey(needle, obj, caseInsensitive) {
	needle = (caseInsensitive) ? needle.toLowerCase() : needle;
	for (let key in obj) {
		let keyCopy = (caseInsensitive) ? key.toLowerCase() : key;

		if (keyCopy === needle) {
			//return the original
			return key;
		}
	}

	return null;
}
function matchKey(needle, obj, caseInsensitive) {
	needle = (caseInsensitive) ? needle.toLowerCase() : needle;
	for (let key in obj) {
		let keyCopy = (caseInsensitive) ? key.toLowerCase() : key;

		if (keyCopy === needle) {
			//return the original
			return key;
		}
	}

	return null;
}
function matchKey ( needle , obj , caseInsensitive ) { needle = ( caseInsensitive ) ? needle . toLowerCase ( ) : needle ; for ( let key in obj ) { let keyCopy = ( caseInsensitive ) ? key . toLowerCase ( ) : key ; if ( keyCopy === needle ) { //return the original return key ; } } return null ; }
this is here instead of utilities to prevent a require-loop when files that utilties requires need settings
this is here instead of utilities to prevent a require - loop when files that utilties requires need settings