Skip to main content

Module: _internals/utils

Functions

generateUniqueId

generateUniqueId(): string

Returns

string

Defined in

packages/admin-sdk/src/_internals/utils.ts:4


isObject

isObject(value): value is any

Parameters

NameType
valueunknown

Returns

value is any

Defined in

packages/admin-sdk/src/_internals/utils.ts:9


getLocationId

getLocationId(): string | null

Returns

string | null

Defined in

packages/admin-sdk/src/_internals/utils.ts:13


getWindowSrc

getWindowSrc(): string

Returns

string

Defined in

packages/admin-sdk/src/_internals/utils.ts:19


hasType

hasType(type, obj): boolean

Parameters

NameType
typestring
objany

Returns

boolean

Defined in

packages/admin-sdk/src/_internals/utils.ts:26


hasOwnProperty

hasOwnProperty(obj, path): boolean

Parameters

NameType
objany
pathstring

Returns

boolean

Defined in

packages/admin-sdk/src/_internals/utils.ts:30


traverseObject

traverseObject(this, traversableObject, processor, previousKey?): void

Parameters

NameTypeDefault value
thisanyundefined
traversableObjectanyundefined
processor(parentEntry: any, key: string, value: any, previousKey: string) => voidundefined
previousKeystring'root'

Returns

void

Defined in

packages/admin-sdk/src/_internals/utils.ts:35


isPrimitive

isPrimitive(value): boolean

Parameters

NameType
valueany

Returns

boolean

Defined in

packages/admin-sdk/src/_internals/utils.ts:48


removeRoot

removeRoot(path): string | number

Removes the root prefix from a path

Parameters

NameType
pathstring | number

Returns

string | number

Defined in

packages/admin-sdk/src/_internals/utils.ts:55


findExtensionByBaseUrl

findExtensionByBaseUrl(baseUrl?): extension | undefined

Parameters

NameType
baseUrl?string

Returns

extension | undefined

Defined in

packages/admin-sdk/src/_internals/utils.ts:63