Created
May 7, 2014 11:26
-
-
Save RodolfoSilva/019eb3f2b5e8d163885c to your computer and use it in GitHub Desktop.
Utilitarios.js Modular AMD, Node.js, Browser
This file contains hidden or 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
(function( global, factory ) { | |
if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') { | |
module.exports = factory(global); | |
} else if (typeof define === 'function' && define.amd) { | |
define([], function() { | |
return factory(global); | |
}); | |
} else { | |
global.Utilitarios = factory(global); | |
} | |
}(typeof window !== 'undefined' ? window : this, function( window ) { | |
var Core = function(options) { | |
}; | |
Core.prototype.isNull = function(obj) { | |
return obj === null; | |
}; | |
Core.prototype.isUndefined = function(obj) { | |
return obj === void 0; | |
}; | |
return Core; | |
})); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment