UNPKG

@luma.gl/shadertools

Version:

Shader module system for luma.gl

12 lines 332 B
// luma.gl // SPDX-License-Identifier: MIT // Copyright (c) vis.gl contributors /** * Capitalize first letter of a string * @param {string} str * @returns {string} */ export function capitalize(str) { return typeof str === 'string' ? str.charAt(0).toUpperCase() + str.slice(1) : str; } //# sourceMappingURL=capitalize.js.map