// normal object
let obj = {
name : "ex" , serial : 1.2
}
// use "Object.create" to make a copy from original object
some_function( Object.create( obj ) )
JSON.parse(JSON.stringify(obj)) //is a fast way to copy your objects, if your objects can be serialized to json.