MCPcopy
hub / github.com/anuraghazra/github-readme-stats / parseBoolean

Function parseBoolean

src/common/utils.js:66–74  ·  view source on GitHub ↗

* @param {string} value * @returns {boolean | string}

(value)

Source from the content-addressed store, hash-verified

64 * @returns {boolean | string}
65 */
66function parseBoolean(value) {
67 if (value === "true") {
68 return true;
69 } else if (value === "false") {
70 return false;
71 } else {
72 return value;
73 }
74}
75
76/**
77 * @param {string} str

Callers 4

top-langs.jsFile · 0.85
index.jsFile · 0.85
pin.jsFile · 0.85
wakatime.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected