RosettaCodeData/Task/Associative-array-Merging/Nu/associative-array-merging.nu

5 lines
143 B
Plaintext

const base = {name: 'Rocket Skates' price: 12.75 color: 'yellow'}
const update = {price: 15.25 color: 'red' year: 1974}
$base | merge $update