Skip to content

Instantly share code, notes, and snippets.

@inhji
Created August 20, 2014 08:56
Show Gist options
  • Save inhji/32012dec6b155ccc99d0 to your computer and use it in GitHub Desktop.
Save inhji/32012dec6b155ccc99d0 to your computer and use it in GitHub Desktop.
betta_v2.js
var ß = (function(){
function _(value) {
this.value = value;
}
_.prototype = {
is: function(){
return new Object().toString.call(this.value).slice(8, -1).toLowerCase();
}
}
function betta(value){
return new _(value);
}
return betta;
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment