UNPKG

@openxmldev/linq-to-xml

Version:
19 lines 466 B
/** * @author Thomas Barnekow * @license MIT */ /** * Removes each element contained in the source sequence from its parent * `XContainer`. * * @typeParam T The type of the elements contained in the soruce sequence. * @param source The source sequence. */ export function remove(source) { const items = [...source]; for (const item of items) { if (item) item.remove(); } } //# sourceMappingURL=remove.js.map