@openxmldev/linq-to-xml
Version:
LINQ to XML for TypeScript
19 lines • 466 B
JavaScript
/**
* @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