Skip to content

Instantly share code, notes, and snippets.

@alexandrebvd
Created August 14, 2015 16:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexandrebvd/7aae0a8e4af7d3338275 to your computer and use it in GitHub Desktop.
Save alexandrebvd/7aae0a8e4af7d3338275 to your computer and use it in GitHub Desktop.
26.Bonfire: Boo who
function boo(bool) {
// What is the new fad diet for ghost developers? The Boolean.
if (typeof(bool) === 'boolean') {
var isBoolean = true;
} else {
isBoolean = false;
}
return isBoolean;
}
boo(false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment