MCPcopy Index your code
hub / github.com/keepfool/vue-tutorials / toBoolean

Function toBoolean

01.GettingStarted/js/vue.js:144–146  ·  view source on GitHub ↗

* Convert string boolean literals into real booleans. * * @param {*} value * @return {*|Boolean}

(value)

Source from the content-addressed store, hash-verified

142 */
143
144 function toBoolean(value) {
145 return value === 'true' ? true : value === 'false' ? false : value;
146 }
147
148 /**
149 * Strip quotes from a string

Callers 1

makePropsLinkFnFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected