@terascope/core-utils / deps
deps
Variables
multiFieldSort
constmultiFieldSort: typeofsortBy=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
| Parameter | Type |
|---|---|
input | unknown |
Returns
any
cloneDeep()
cloneDeep<
T>(input):T
Defined in: packages/core-utils/src/deps.ts:70
Type Parameters
| Type Parameter | Default type |
|---|---|
T | any |
Parameters
| Parameter | Type |
|---|---|
input | T |
Returns
T
escapeString()
escapeString(
input):string
Defined in: packages/core-utils/src/deps.ts:109
Escape characters in string and avoid double escaping
Parameters
| Parameter | Type |
|---|---|
input | string | number |
Returns
string
getTypeOf()
getTypeOf(
val):string
Defined in: packages/core-utils/src/deps.ts:81
Determine the type of an input
Parameters
| Parameter | Type |
|---|---|
val | any |
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
| Parameter | Type |
|---|---|
input | unknown |
Returns
boolean