This repository has been archived on 2018-10-12. You can view files and clone it, but cannot push or open issues or pull requests.
image-juicer/app/utils/index.js
2017-04-06 17:18:27 -04:00

14 lines
210 B
JavaScript

export function prefixClasses(prefix, classes) {
if (String(classes).length < 1) {
return '';
}
return classes.split(' ')
.map(c => `${prefix}-${c}`)
.join(' ');
}
export default {
prefixClasses
};