Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

spread operator merge objects

 let a = {
    a: 1,
    b: true
}

let b = {
	y: 093,
	z: 'This is an object'
}

const c = {...a, ...b}
Source by www.javascripttutorial.net #
 
PREVIOUS NEXT
Tagged: #spread #operator #merge #objects
ADD COMMENT
Topic
Name
3+6 =