Newer
Older
alert / js / node_modules / @webassemblyjs / ast / esm / clone.js
@Réz István Réz István on 18 Nov 2021 134 bytes first commit
export function cloneNode(n) {
  // $FlowIgnore
  var newObj = {};

  for (var k in n) {
    newObj[k] = n[k];
  }

  return newObj;
}