MCPcopy Create free account
hub / github.com/microsoft/SandDance / capitalize

Function capitalize

docs/app/js/sanddance-app.js:123995–123997  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

123993 return props.length < 2 ? props[0] : props.slice(0, -1).join(", ") + " and " + (0, _vegaUtil.peek)(props);
123994}
123995function capitalize(s) {
123996 return s.length ? s[0].toUpperCase() + s.slice(1) : s;
123997}
123998const innerText = (val)=>(val + "").replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
123999const attrText = (val)=>innerText(val).replace(/"/g, "&quot;").replace(/\t/g, "&#x9;").replace(/\n/g, "&#xA;").replace(/\r/g, "&#xD;");
124000function markup() {

Callers 1

legendCaptionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected