Newer
Older
alert / js / node_modules / @webassemblyjs / ast / lib / clone.js
@Réz István Réz István on 18 Nov 2021 239 bytes first commit
"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.cloneNode = cloneNode;

function cloneNode(n) {
  // $FlowIgnore
  var newObj = {};

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

  return newObj;
}