@darwish/utils-core
Version:
12 lines (11 loc) • 449 B
TypeScript
/// <reference types="@darwish/types" />
/**
* @description Get value from object by path.
* @test ✅Tested (已通过测试放心使用)
* @param obj The object to query.
* @param key The key of the property to get.
* @param def The default value.
* @param p The index of the key.
* @param undef The undefined value.
*/
export default function dlv<T>(obj: Darwish.AnyObj, key: string | string[], def?: string, p?: number, undef?: T): any;