Skip to content

Instantly share code, notes, and snippets.

@RodolfoSilva
Created May 7, 2014 11: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 RodolfoSilva/019eb3f2b5e8d163885c to your computer and use it in GitHub Desktop.
Save RodolfoSilva/019eb3f2b5e8d163885c to your computer and use it in GitHub Desktop.
Utilitarios.js Modular AMD, Node.js, Browser
(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