spread to new object

node v10.16.3
version: 1.0.0
endpointsharetweet
const initialData = { keyA: 10, keyB: 20 }; const finalData = { ...initialData, keyB: 100, keyC: 30 }; console.log(finalData)
Loading…

no comments

    sign in to comment