MetaPhase-Consulting/State-TalentMAP

View on GitHub
src/polyfills/index.js

Summary

Maintainability
A
0 mins
Test Coverage
// https://developer.mozilla.org/en-US/docs/Web/API/ChildNode/remove#Polyfill
/* eslint-disable */
(function (arr) {
  arr.forEach((item) => {
    if (item.hasOwnProperty('remove')) {
      return;
    }
    Object.defineProperty(item, 'remove', {
      configurable: true,
      enumerable: true,
      writable: true,
      value: function remove() {
        this.parentNode.removeChild(this);
      },
    });
  });
}([Element.prototype, CharacterData.prototype, DocumentType.prototype]));
/* eslint-enable */