MCPcopy Create free account
hub / github.com/breck7/scroll / ucfirst

Method ucfirst

external/.scrollLibs.js:14283–14285  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

14281 return str.replace(/\`/g, "\\`").replace(/\$\{/g, "\\${")
14282 }
14283 static ucfirst(str) {
14284 return str.charAt(0).toUpperCase() + str.slice(1)
14285 }
14286 // Adapted from: https://github.com/dcporter/didyoumean.js/blob/master/didYouMean-1.2.1.js
14287 static didYouMean(str = "", options = [], caseSensitive = false, threshold = 0.4, thresholdAbsolute = 20) {
14288 if (!caseSensitive) str = str.toLowerCase()

Callers

nothing calls this directly

Calls 1

sliceMethod · 0.80

Tested by

no test coverage detected