mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
00d4f8073c
PR-URL: https://github.com/nodejs/node/pull/54904 Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
22 lines
317 B
JavaScript
22 lines
317 B
JavaScript
function processData(input) {
|
|
return {
|
|
...input,
|
|
b: input.b + 1
|
|
};
|
|
}
|
|
|
|
const data = {
|
|
a: "test",
|
|
b: 42,
|
|
c: true,
|
|
d: {
|
|
e: ["hello", "world"],
|
|
f: {
|
|
g: 100,
|
|
h: ["str", 123, false]
|
|
}
|
|
}
|
|
};
|
|
|
|
export const result = processData(data);
|