views:

62

answers:

1

Yes, it is a trivial question. I was just wondering. Does the framework have a helper function that does something like this:

switch (value)
{
    case "true":
        return true;
    case "false":
        return false;
    default:
        return Boolean(value);
}
+1  A: 

No. See this Stackoverflow post.

paleozogt