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 Answers1

1

No. See this Stackoverflow post.

Community
  • 1
  • 1
paleozogt
  • 6,393
  • 11
  • 51
  • 94