Files
red_de_investigacion_front/node_modules/bootstrap-vue/esm/utils/suffix-prop-name.js
T
DanielRamirezGe 5eecfbf6cd first commit
2020-01-14 20:43:08 -06:00

14 lines
419 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
*/
var suffixPropName = function suffixPropName(suffix, str) {
return str + (suffix ? upperFirst(suffix) : '');
};
export default suffixPropName;