clone.js 134 B

12345678910
  1. export function cloneNode(n) {
  2. // $FlowIgnore
  3. var newObj = {};
  4. for (var k in n) {
  5. newObj[k] = n[k];
  6. }
  7. return newObj;
  8. }