Chris Loves .net
  • Home
  • Portfolio
  • Profile
  • Contact

Useful JavaScript Functions - To Boolean

A quick snippet of useful JavaScript functions:

var CommonFunctions = function () {
    function toBoolean(value) {
        switch (value) {
            case true:
            case 'True':
            case 'true':
            case 1:
            case '1':
                return true;
                break;
            default:
                return false;
                break;
        }
    }

    return {
        toBoolean: function (value) {
            return toBoolean(value);
        }
    }
}();

Featured Blogs

Class Finalizer

Use class finalizers to correctly clean up your object instances.

Newton UX Scale

The Newton UX Scale, not to be confused with Newton Scale devised by Isaac Newton in 1701

Choosing the right .net technology for desktop applications

Presented with the question: which is the right choice of .net technology for desktop development. I try to discern an answer.

WCF - Security Negotiation Exception

One way to overcome a WCF Security Negotiation Exception

What are REST and SOAP

REST and SOAP are used when describing web services, what are the differences?

Featured Blogs

Class Finalizer

Newton UX Scale

Choosing the right .net technology for desktop applications

WCF - Security Negotiation Exception

What are REST and SOAP

Social Links

  • LinkedIn
  • GitHub

Legal Links

  • Terms and Conditions
  • Copyright Notice
  • Privacy Policy