/**
* Essential JavaScript Utilities
*
* @author Davey Jacobson <djacobson@usarugby.org>
* @namespace UTIL
* @version 0.0.1
* @changelog {2017-06-15} - 0.0.1 Release
*/
var UTIL = {
/**
* Get var/val type
*
* @memberof UTIL
* @method is#Method
*/
is: {
Function: function( x ) {
return typeof(x) === 'function';
},
Object: function( x ) {
return typeof(x) === 'object';
},
String: function( x ) {
return typeof(x) === 'string';
}
}
};
Just a basic object of common (but essential) JavaScript utility functions that I use for all of my major projects. Quick, simple and a HUGE timesaver when developing.
New methods will be added soon...
New methods will be added soon...
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.