modeling/src/geometries/geom2/clone.js

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

module.exports = clone