Skip to main content
Module

x/ts_morph/mod.ts>ObjectLiteralExpression#getProperty

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
method ObjectLiteralExpression.prototype.getProperty
import { ObjectLiteralExpression } from "https://deno.land/x/ts_morph@15.1.0/mod.ts";

Gets the first property by the provided name or returns undefined.

Parameters

name: string
  • Name of the property.

Gets the first property that matches the provided find function or returns undefined.

Parameters

findFunction: (property: ObjectLiteralElementLike) => boolean
  • Find function.