18 lines
No EOL
304 B
JavaScript
18 lines
No EOL
304 B
JavaScript
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.default = cloneNodes;
|
|
|
|
function cloneNodes(nodes, source) {
|
|
return nodes.map(node => {
|
|
let cloned = node.clone();
|
|
|
|
if (source !== undefined) {
|
|
cloned.source = source;
|
|
}
|
|
|
|
return cloned;
|
|
});
|
|
} |