UNPKG

foxts

Version:

Opinionated collection of common TypeScript utils by @SukkaW

1 lines 240 B
"use strict";function e(e){for(;e.firstChild;)e.removeChild(e.lastChild)}const t=e=>e.replaceChildren(),r="u">typeof Element&&"replaceChildren"in Element.prototype?t:e;exports.emptyElement=r,exports.emptyElementModern=t,exports.emptyNode=e;