functions.js 278 B

12345678910111213
  1. class dom_manager {
  2. static is_element(target) {
  3. return target instanceof HTMLElement;
  4. }
  5. static validate_element(target) {
  6. if (!self.is_element(target)) {
  7. throw "Parameter must be HTMLElement.";
  8. }
  9. }
  10. }
  11. export { dom_manager };