Skip to main content

@terascope/core-utils / deps

deps

Variables​

multiFieldSort​

const multiFieldSort: typeof sortBy = sortBy

Defined in: packages/core-utils/src/deps.ts:20

Functions​

clone()​

clone(input): any

Defined in: packages/core-utils/src/deps.ts:42

Shallow clone an object

Parameters​

ParameterType
inputunknown

Returns​

any


cloneDeep()​

cloneDeep<T>(input): T

Defined in: packages/core-utils/src/deps.ts:70

Type Parameters​

Type ParameterDefault type
Tany

Parameters​

ParameterType
inputT

Returns​

T


escapeString()​

escapeString(input): string

Defined in: packages/core-utils/src/deps.ts:109

Escape characters in string and avoid double escaping

Parameters​

ParameterType
inputstring | number

Returns​

string


getTypeOf()​

getTypeOf(val): string

Defined in: packages/core-utils/src/deps.ts:81

Determine the type of an input

Parameters​

ParameterType
valany

Returns​

string

a human friendly string that describes the input


isPlainObject()​

isPlainObject(input): boolean

Defined in: packages/core-utils/src/deps.ts:33

Detect if value is a plain object, that is, an object created by the Object constructor or one via Object.create(null)

Parameters​

ParameterType
inputunknown

Returns​

boolean