isElement.js 159 B

12345678910
  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. });