API Reference
@univerjs
@univerjs/core
functions
Get

@univerjs/core v0.3.0Docs


Function: get()

get(object, path)

function get<TObject, TKey>(object, path): TObject[TKey]

Gets the property value at path of object. If the resolved value is undefined the defaultValue is used in its place.

Type Parameters

Type Parameter
TObject extends object
TKey extends string | number | symbol

Parameters

ParameterTypeDescription
objectTObjectThe object to query.
pathTKey | [TKey]The path of the property to get.

Returns

TObject[TKey]

Returns the resolved value.

Defined in

submodules/univer/node_modules/.pnpm/@types+lodash@4.17.7/node_modules/@types/lodash/common/object.d.ts:1127

get(object, path)

function get<TObject, TKey>(object, path): undefined | TObject[TKey]

Type Parameters

Type Parameter
TObject extends object
TKey extends string | number | symbol

Parameters

ParameterType
objectundefined | null | TObject
pathTKey | [TKey]

Returns

undefined | TObject[TKey]

See

_.get

Defined in

submodules/univer/node_modules/.pnpm/@types+lodash@4.17.7/node_modules/@types/lodash/common/object.d.ts:1131

get(object, path, defaultValue)

function get<TObject, TKey, TDefault>(
   object, 
   path, 
defaultValue): TDefault | Exclude<TObject[TKey], undefined>

Type Parameters

Type Parameter
TObject extends object
TKey extends string | number | symbol
TDefault

Parameters

ParameterType
objectundefined | null | TObject
pathTKey | [TKey]
defaultValueTDefault

Returns

TDefault | Exclude<TObject[TKey], undefined>

See

_.get

Defined in

submodules/univer/node_modules/.pnpm/@types+lodash@4.17.7/node_modules/@types/lodash/common/object.d.ts:1135

get(object, path)

function get<TObject, TKey1, TKey2>(object, path): TObject[TKey1][TKey2]

Type Parameters

Type Parameter
TObject extends object
TKey1 extends string | number | symbol
TKey2 extends string | number | symbol

Parameters

ParameterType
objectTObject
path[TKey1, TKey2]

Returns

TObject[TKey1][TKey2]

See

_.get

Defined in

submodules/univer/node_modules/.pnpm/@types+lodash@4.17.7/node_modules/@types/lodash/common/object.d.ts:1139

get(object, path)

function get<TObject, TKey1, TKey2>(object, path): undefined | NonNullable<TObject[TKey1]>[TKey2]

Type Parameters

Type Parameter
TObject extends object
TKey1 extends string | number | symbol
TKey2 extends string | number | symbol

Parameters

ParameterType
objectundefined | null | TObject
path[TKey1, TKey2]

Returns

undefined | NonNullable<TObject[TKey1]>[TKey2]

See

_.get

Defined in

submodules/univer/node_modules/.pnpm/@types+lodash@4.17.7/node_modules/@types/lodash/common/object.d.ts:1143

get(object, path, defaultValue)

function get<TObject, TKey1, TKey2, TDefault>(
   object, 
   path, 
defaultValue): TDefault | Exclude<NonNullable<TObject[TKey1]>[TKey2], undefined>

Type Parameters

Type Parameter
TObject extends object
TKey1 extends string | number | symbol
TKey2 extends string | number | symbol
TDefault

Parameters

ParameterType
objectundefined | null | TObject
path[TKey1, TKey2]
defaultValueTDefault

Returns

TDefault | Exclude<NonNullable<TObject[TKey1]>[TKey2], undefined>

See

_.get

Defined in

submodules/univer/node_modules/.pnpm/@types+lodash@4.17.7/node_modules/@types/lodash/common/object.d.ts:1147

get(object, path)

function get<TObject, TKey1, TKey2, TKey3>(object, path): TObject[TKey1][TKey2][TKey3]

Type Parameters

Type Parameter
TObject extends object
TKey1 extends string | number | symbol
TKey2 extends string | number | symbol
TKey3 extends string | number | symbol

Parameters

ParameterType
objectTObject
path[TKey1, TKey2, TKey3]

Returns

TObject[TKey1][TKey2][TKey3]

See

_.get

Defined in

submodules/univer/node_modules/.pnpm/@types+lodash@4.17.7/node_modules/@types/lodash/common/object.d.ts:1151

get(object, path)

function get<TObject, TKey1, TKey2, TKey3>(object, path): undefined | NonNullable<NonNullable<TObject[TKey1]>[TKey2]>[TKey3]

Type Parameters

Type Parameter
TObject extends object
TKey1 extends string | number | symbol
TKey2 extends string | number | symbol
TKey3 extends string | number | symbol

Parameters

ParameterType
objectundefined | null | TObject
path[TKey1, TKey2, TKey3]

Returns

undefined | NonNullable<NonNullable<TObject[TKey1]>[TKey2]>[TKey3]

See

_.get

Defined in

submodules/univer/node_modules/.pnpm/@types+lodash@4.17.7/node_modules/@types/lodash/common/object.d.ts:1155

get(object, path, defaultValue)

function get<TObject, TKey1, TKey2, TKey3, TDefault>(
   object, 
   path, 
defaultValue): TDefault | Exclude<NonNullable<NonNullable<TObject[TKey1]>[TKey2]>[TKey3], undefined>

Type Parameters

Type Parameter
TObject extends object
TKey1 extends string | number | symbol
TKey2 extends string | number | symbol
TKey3 extends string | number | symbol
TDefault

Parameters

ParameterType
objectundefined | null | TObject
path[TKey1, TKey2, TKey3]
defaultValueTDefault

Returns

TDefault | Exclude<NonNullable<NonNullable<TObject[TKey1]>[TKey2]>[TKey3], undefined>

See

_.get

Defined in

submodules/univer/node_modules/.pnpm/@types+lodash@4.17.7/node_modules/@types/lodash/common/object.d.ts:1159

get(object, path)

function get<TObject, TKey1, TKey2, TKey3, TKey4>(object, path): TObject[TKey1][TKey2][TKey3][TKey4]

Type Parameters

Type Parameter
TObject extends object
TKey1 extends string | number | symbol
TKey2 extends string | number | symbol
TKey3 extends string | number | symbol
TKey4 extends string | number | symbol

Parameters

ParameterType
objectTObject
path[TKey1, TKey2, TKey3, TKey4]

Returns

TObject[TKey1][TKey2][TKey3][TKey4]

See

_.get

Defined in

submodules/univer/node_modules/.pnpm/@types+lodash@4.17.7/node_modules/@types/lodash/common/object.d.ts:1163

get(object, path)

function get<TObject, TKey1, TKey2, TKey3, TKey4>(object, path): undefined | NonNullable<NonNullable<NonNullable<TObject[TKey1]>[TKey2]>[TKey3]>[TKey4]

Type Parameters

Type Parameter
TObject extends object
TKey1 extends string | number | symbol
TKey2 extends string | number | symbol
TKey3 extends string | number | symbol
TKey4 extends string | number | symbol

Parameters

ParameterType
objectundefined | null | TObject
path[TKey1, TKey2, TKey3, TKey4]

Returns

undefined | NonNullable<NonNullable<NonNullable<TObject[TKey1]>[TKey2]>[TKey3]>[TKey4]

See

_.get

Defined in

submodules/univer/node_modules/.pnpm/@types+lodash@4.17.7/node_modules/@types/lodash/common/object.d.ts:1167

get(object, path, defaultValue)

function get<TObject, TKey1, TKey2, TKey3, TKey4, TDefault>(
   object, 
   path, 
defaultValue): TDefault | Exclude<NonNullable<NonNullable<NonNullable<TObject[TKey1]>[TKey2]>[TKey3]>[TKey4], undefined>

Type Parameters

Type Parameter
TObject extends object
TKey1 extends string | number | symbol
TKey2 extends string | number | symbol
TKey3 extends string | number | symbol
TKey4 extends string | number | symbol
TDefault

Parameters

ParameterType
objectundefined | null | TObject
path[TKey1, TKey2, TKey3, TKey4]
defaultValueTDefault

Returns

TDefault | Exclude<NonNullable<NonNullable<NonNullable<TObject[TKey1]>[TKey2]>[TKey3]>[TKey4], undefined>

See

_.get

Defined in

submodules/univer/node_modules/.pnpm/@types+lodash@4.17.7/node_modules/@types/lodash/common/object.d.ts:1171

get(object, path)

function get<T>(object, path): T

Type Parameters

Type Parameter
T

Parameters

ParameterType
objectNumericDictionary<T>
pathnumber

Returns

T

See

_.get

Defined in

submodules/univer/node_modules/.pnpm/@types+lodash@4.17.7/node_modules/@types/lodash/common/object.d.ts:1175

get(object, path)

function get<T>(object, path): undefined | T

Type Parameters

Type Parameter
T

Parameters

ParameterType
objectundefined | null | NumericDictionary<T>
pathnumber

Returns

undefined | T

See

_.get

Defined in

submodules/univer/node_modules/.pnpm/@types+lodash@4.17.7/node_modules/@types/lodash/common/object.d.ts:1179

get(object, path, defaultValue)

function get<T, TDefault>(
   object, 
   path, 
   defaultValue): T | TDefault

Type Parameters

Type Parameter
T
TDefault

Parameters

ParameterType
objectundefined | null | NumericDictionary<T>
pathnumber
defaultValueTDefault

Returns

T | TDefault

See

_.get

Defined in

submodules/univer/node_modules/.pnpm/@types+lodash@4.17.7/node_modules/@types/lodash/common/object.d.ts:1183

get(object, path, defaultValue)

function get<TDefault>(
   object, 
   path, 
   defaultValue): TDefault

Type Parameters

Type Parameter
TDefault

Parameters

ParameterType
objectundefined | null
pathPropertyPath
defaultValueTDefault

Returns

TDefault

See

_.get

Defined in

submodules/univer/node_modules/.pnpm/@types+lodash@4.17.7/node_modules/@types/lodash/common/object.d.ts:1187

get(object, path)

function get(object, path): undefined

Parameters

ParameterType
objectundefined | null
pathPropertyPath

Returns

undefined

See

_.get

Defined in

submodules/univer/node_modules/.pnpm/@types+lodash@4.17.7/node_modules/@types/lodash/common/object.d.ts:1191

get(data, path)

function get<TObject, TPath>(data, path): string extends TPath ? any : GetFieldType<TObject, TPath, "Path">

Type Parameters

Type Parameter
TObject
TPath extends string

Parameters

ParameterType
dataTObject
pathTPath

Returns

string extends TPath ? any : GetFieldType<TObject, TPath, "Path">

See

_.get

Defined in

submodules/univer/node_modules/.pnpm/@types+lodash@4.17.7/node_modules/@types/lodash/common/object.d.ts:1195

get(data, path, defaultValue)

function get<TObject, TPath, TDefault>(
   data, 
   path, 
defaultValue): TDefault | Exclude<GetFieldType<TObject, TPath, "Path">, undefined | null>

Type Parameters

Type ParameterDefault type
TObject-
TPath extends string-
TDefaultGetFieldType<TObject, TPath, "Path">

Parameters

ParameterType
dataTObject
pathTPath
defaultValueTDefault

Returns

TDefault | Exclude<GetFieldType<TObject, TPath, "Path">, undefined | null>

See

_.get

Defined in

submodules/univer/node_modules/.pnpm/@types+lodash@4.17.7/node_modules/@types/lodash/common/object.d.ts:1199

get(object, path, defaultValue)

function get(
   object, 
   path, 
   defaultValue?): any

Parameters

ParameterType
objectany
pathPropertyPath
defaultValue?any

Returns

any

See

_.get

Defined in

submodules/univer/node_modules/.pnpm/@types+lodash@4.17.7/node_modules/@types/lodash/common/object.d.ts:1203


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.