UNPKG

@zvenigora/ng-eval-core

Version:

An expression evaluator for Angular

24 lines (23 loc) 1.32 kB
import { BaseContext } from "../classes/common/context"; /** * Retrieves the key-value pair from an object based on the provided key. * @param obj - The object to search for the key-value pair. * @param key - The key to search for in the object. * @param caseInsesitive - Specifies whether the key comparison should be case-insensitive. * @returns The key-value pair as an array, or undefined if the key is not found. */ export declare const getKeyValue: (obj: BaseContext, key: string | number | symbol, caseInsesitive: boolean) => [string | number | symbol, unknown] | undefined; /** * Compares two values for equality, ignoring case sensitivity. * @param a - The first value to compare. * @param b - The second value to compare. * @returns `true` if the values are equal, `false` otherwise. */ export declare const equalIgnoreCase: (a: string | number | symbol, b: string | number | symbol) => boolean | undefined; /** * Retrieves the value from an object, ignoring the case of the key. * @param obj - The object to retrieve the value from. * @param key - The key to search for, ignoring the case. * @returns The value associated with the key, or undefined if the key is not found. */ export declare const getValueIgnoreCase: (obj: BaseContext, key: string | number | symbol) => unknown | undefined;