node/benchmark/fixtures/strip-types-benchmark.js
Marco Ippolito 00d4f8073c
benchmark: create benchmark for typescript
PR-URL: https://github.com/nodejs/node/pull/54904
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
2024-09-25 17:25:18 +00:00

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);