Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript pass object by value

// normal object
let obj = {
  	name : "ex" , serial : 1.2
}

// use "Object.create" to make a copy from original object
some_function( Object.create( obj ) )
 
PREVIOUS NEXT
Tagged: #javascript #pass #object
ADD COMMENT
Topic
Name
2+6 =