packages/babel-types/src/clone/clone.js

Summary

Maintainability
A
0 mins
Test Coverage
// @flow

import cloneNode from "./cloneNode";

/**
 * Create a shallow clone of a `node`, including only
 * properties belonging to the node.
 * @deprecated Use t.cloneNode instead.
 */
export default function clone<T: Object>(node: T): T {
  return cloneNode(node, /* deep */ false);
}