bootstrap-vue
Version:
BootstrapVue provides one of the most comprehensive implementations of Bootstrap 4 components and grid system for Vue.js and with extensive and automated WAI-ARIA accessibility markup.
12 lines (11 loc) • 380 B
JavaScript
import upperFirst from './upper-first';
/**
* Suffix can be a falsey value so nothing is appended to string.
* (helps when looping over props & some shouldn't change)
* Use data last parameters to allow for currying.
* @param {string} suffix
* @param {string} str
*/
export default function suffixPropName(suffix, str) {
return str + (suffix ? upperFirst(suffix) : '');
}