pulumi/tests/testdata/codegen/entries-function-pp/nodejs/entries-function.ts

11 lines
192 B
TypeScript

import * as pulumi from "@pulumi/pulumi";
const data = [
1,
2,
3,
].map((v, k) => ({key: k, value: v})).map(entry => ({
usingKey: entry.key,
usingValue: entry.value,
}));