Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const getPropsAndSubKeys = propStr => {
const [ prop, subkey ] = propStr.split('.')
if (isPropertyId(prop)) return lazyProps.claims(prop)
else if (prop.match(langPattern)) return lazyProps.terms(prop)
else if (isSitelinkKey(prop)) return lazyProps.sitelinks(prop)
else return [ { prop, subkey } ]
}