Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function genFn (nameGen) {
return typeof nameGen === 'function' ? nameGen
: typeof nameGen === 'string' ? pitchSetGen(nameGen)
: nameGen === true || nameGen === false ? _.chromatic(nameGen)
: nameGen === null ? id
: nilFn
}
function genFn (nameGen) {
return typeof nameGen === 'function' ? nameGen
: typeof nameGen === 'string' ? pitchSetGen(nameGen)
: nameGen === true || nameGen === false ? _.chromatic(nameGen)
: nameGen === null ? id
: nilFn
}