MCPcopy
hub / github.com/Semantic-Org/Semantic-UI / startsWith

Function startsWith

tasks/docs/metadata.js:21–23  ·  view source on GitHub ↗

* Test for prefix in string. * @param {string} str * @param {string} prefix * @return {boolean}

(str, prefix)

Source from the content-addressed store, hash-verified

19 * @return {boolean}
20 */
21function startsWith(str, prefix) {
22 return str.indexOf(prefix) === 0;
23}
24
25function inArray(needle, haystack) {
26 var length = haystack.length;

Callers 1

parserFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…