isElement.js 159 B

1234567891011
  1. define(function () {
  2. // Is a given value a DOM element?
  3. function isElement(obj) {
  4. return !!(obj && obj.nodeType === 1);
  5. }
  6. return isElement;
  7. });