Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

isHTMLImageElement.js 479 B

3 lat temu
1234567891011121314151617181920212223
  1. "use strict";
  2. /**
  3. * Copyright (c) Facebook, Inc. and its affiliates.
  4. *
  5. * This source code is licensed under the MIT license found in the
  6. * LICENSE file in the root directory of this source tree.
  7. *
  8. * @format
  9. *
  10. * @emails oncall+draft_js
  11. */
  12. var isElement = require("./isElement");
  13. function isHTMLImageElement(node) {
  14. if (!node || !node.ownerDocument) {
  15. return false;
  16. }
  17. return isElement(node) && node.nodeName === 'IMG';
  18. }
  19. module.exports = isHTMLImageElement;