A simple function for safely checking Boolean-esque values

On a recent project, I needed to check several values for True/False. Unfortunately, the data set I was working with was the very definition of inconsistent. Some values were stored as true booleans, some were strings like "True" or "False" or "Yes" or "No" and some were 1 or 0. Quite a few entries were just null.

The following is a very simple JavaScript function that takes in a value, determines the type, then returns the truthy/falsey with a default of False.