MCPcopy Create free account
hub / github.com/unconed/TermKit / toBoolean

Function toBoolean

HTML/external/syntaxhighlighter_3.0.83/src/shCore.js:576–580  ·  view source on GitHub ↗

* Attempts to convert string to boolean. * @param {String} value Input string. * @return {Boolean} Returns true if input was "true", false if input was "false" and value otherwise.

(value)

Source from the content-addressed store, hash-verified

574 * @return {Boolean} Returns true if input was "true", false if input was "false" and value otherwise.
575 */
576function toBoolean(value)
577{
578 var result = { "true" : true, "false" : false }[value];
579 return result == null ? value : result;
580};
581
582/**
583 * Opens up a centered popup window.

Callers 1

shCore.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected