@ou-imdt/utils
Version:
Utility library for interactive media development
11 lines (10 loc) • 336 B
JavaScript
import capFirstLetter from './capFirstLetter.js';
import toCamelCase from './toCamelCase.js';
/**
* Converts a string to Pascal case.
* @param {string} str - The string to convert.
* @returns {string} The Pascal case version of the string.
*/
export default function toPascalCase(str) {
return capFirstLetter(toCamelCase(str));
}