タグ

ブックマーク / beautifuljs.net (1)

  • Beautiful JS

    jQuery’s isPlainObject returns true if the argument is a regular object, i.e. one created via the Object constructor or object literal ({...}). //... isPlainObject: function( obj ) { // Must be an Object. // Because of IE, we also have to check the presence of the constructor property. // Make sure that DOM nodes and window objects don't pass through, as well if ( !obj || jQuery.type(obj) !== "obj

  • 1