modeling/src/geometries/path2/clone.js

/**
 * Performs a shallow clone of the give geometry.
 * @param {path2} geometry - the geometry to clone
 * @returns {path2} a new path
 * @alias module:modeling/geometries/path2.clone
 */
const clone = (geometry) => Object.assign({}, geometry)

module.exports = clone