Sha256: 05099a19cc04d951df04ef8b8928d66e041fd86c31e7370b4d045ccecdbe88ce
Contents?: true
Size: 852 Bytes
Versions: 3
Compression:
Stored size: 852 Bytes
Contents
/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2018 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define([], function() { "use strict"; /** * Converts first character of the string to upper case. * * @example * sap.ui.require(["sap/base/strings/capitalize"], function(capitalize){ * capitalize("foobar"); // "Foobar" * }); * * @function * @since 1.58 * @alias module:sap/base/strings/capitalize * @public * @param {string} sString String for which first character should be converted * @returns {string} String input with first character uppercase * @SecPassthrough {0|return} */ var fnCapitalize = function (sString) { return sString.charAt(0).toUpperCase() + sString.substring(1); }; return fnCapitalize; });
Version data entries
3 entries across 3 versions & 1 rubygems