Skip to content

getValue

@tsed/core

Usage

typescript
import { getValue } from "@tsed/core";

See /packages/core/src/types/utils/objects/getValue.ts.

Overview

ts
function getValue<T = any>(scope: any, expression: string | undefined): T | undefined;

export function getValue<T = any>(scope: any, expression: string | undefined, defaultValue: T, separator?: string): T;

export function getValue<T = any>(expression: string | undefined, scope: any): T | undefined;

export function getValue<T = any>(expression: string | undefined, scope: any, defaultValue: T, separator?: string): T;

Description

Get value from scope

Released under the MIT License.