Created
August 20, 2014 08:56
-
-
Save inhji/32012dec6b155ccc99d0 to your computer and use it in GitHub Desktop.
betta_v2.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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