Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Object.keys(permutation).reduce((acc, key) => {
if (/^example/.test(key)) return acc
const exampleKey = 'example' + util.string.capitalize(key)
acc += ` ${key}=${permutation[exampleKey]
? permutation[exampleKey]
: `"${permutation[key]}"`}`
return acc
}, '')
const renderSingleLine = (props, side, i) => {
const className = classnames({
[props.css.lineSingleSide]: props.sides !== 'all',
[props.css['line' + util.string.capitalize(side)]]: true
})
return (
<div style="{{">
)
}
</div>
const formatTitle = props =>
props.title
? util.string.capitalize(props.title) + ' | ' + defaultTitle
: defaultTitle