Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function asArr(src) {
return tonalPitches.isArr(src) ? src : typeof src === 'string' ? src.trim().split(SEP) : src === null || typeof src === 'undefined' ? [] : [src];
}
export function asArr (src) {
return isArr(src) ? src
: typeof src === 'string' ? src.trim().split(SEP)
: (src === null || typeof src === 'undefined') ? []
: [ src ]
}
function asList (src) {
return tonalPitches.isArr(src) ? src
: typeof src === 'string' ? src.trim().split(SEP)
: (src === null || typeof src === 'undefined') ? []
: [ src ]
}