clone.js 239 B

1234567891011121314151617
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.cloneNode = cloneNode;
  6. function cloneNode(n) {
  7. // $FlowIgnore
  8. var newObj = {};
  9. for (var k in n) {
  10. newObj[k] = n[k];
  11. }
  12. return newObj;
  13. }