Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /home/bateeqjg/public_html/news/wp-content/plugins/wp-syntax/wp-syntax.php on line 380
`isObjectEmpty()` is a function that will only return true if the passed an object that contains no keys.
This is different than jQuery.isEmptyObject() because the passed argument MUST be an object.
/** * Check to see if an object has any keys. * @param {Object} obj * @return {Boolean} * @author Larry Battle <bateru.com/news> * @license WTFPL **/ var isObjectEmpty = function( obj ) { var name; for ( name in obj ) { return false; } return obj != null && typeof obj === "object"; }; |
(Page view Count: 96)