Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function toResolve() {
stack.push(key);
var option = normalize.apply(resolver, args);
if (option == null) {
option = fallback;
if (typeof option === 'function') {
option = option.apply(resolver, appliedArgs);
}
}
return option;
}