Skip to main content
Module

x/deno2node/src/deps.deno.ts>ObjectLiteralExpression#insertProperty

Compile your Deno project to run on Node.js.
Go to Latest
method ObjectLiteralExpression.prototype.insertProperty
import { ObjectLiteralExpression } from "https://deno.land/x/deno2node@v1.7.1/src/deps.deno.ts";

Inserts the specified property to the object literal expression.

Note: If you only want to insert a property assignment, then it might be more convenient to use #insertPropertyAssignment.