object

object

Methods

(static) eachObjectF<T = any>(f, obj) → {ObjectInterface<T>}

Source:
Name Type Description
f EachObjectCallbackType<T, void>
obj ObjectInterface<T>
Returns:
Type
ObjectInterface<T>

(static) filterObjectF<T = any>(f, obj) → {ObjectInterface<T>}

Source:
Name Type Description
f EachObjectCallbackType<T, boolean>
obj ObjectInterface<T>
Returns:
Type
ObjectInterface<T>

(static) headObject<T>(obj) → {T}

Source:
Name Type Description
obj ObjectInterface<T>
Returns:
Type
T

(static) keys<T extends ObjectInterface<T>>(obj) → {Array<keyof T & string>}

Source:
Name Type Description
obj ObjectInterface<T>
Returns:
Type
Array<keyof T & string>

(static) mapObjectF<T = any, U = any>(f, obj) → {ObjectInterface<U>}

Source:
Name Type Description
f EachObjectCallbackType<T, U>
obj ObjectInterface<T>
Returns:
Type
ObjectInterface<U>

(static) reduceObjectF<T, U = T>(callbackFn, initial, obj) → {T}

Source:
Name Type Description
callbackFn ReduceObjectCallbackType<T, U>
initial T
obj ObjectInterface<U>
Returns:
Type
T

(static) tailObject<T>(obj) → {T}

Source:
Name Type Description
obj ObjectInterface<T>
Returns:
Type
T

(static) takeObjectF<T extends ObjectInterface<any>>(length, obj) → {CheckPromiseType<CheckObjectType<T>, PromiseReturnType<ObjectInterface<CheckPromiseObjectType<T>>>, ObjectInterface<CheckPromiseObjectType<T>>>}

Source:
Name Type Description
length number
obj T

takeObjectF<T extends ObjectInterface<any>>(length, obj) → {CheckPromiseType<CheckObjectType<T>, PromiseReturnType<ObjectInterface<CheckPromiseObjectType<T>>>, ObjectInterface<CheckPromiseObjectType<T>>>}

Name Type Description
length number
obj T
Returns:
Type
CheckPromiseType<CheckObjectType<T>, PromiseReturnType<ObjectInterface<CheckPromiseObjectType<T>>>, ObjectInterface<CheckPromiseObjectType<T>>>

(static) values<T>(obj) → {T[]}

Source:
Name Type Description
obj ObjectInterface<T>
Returns:
Type
T[]

Type Definitions

EachObjectCallbackType<T, U, R extends ObjectInterface<T | Promise<T>> = ObjectInterface<T>>

Source:
Type:
  • (value: T, key: string, obj: R) => U

ReduceObjectCallbackType<T, U, R extends ObjectInterface<U | Promise<U>> = ObjectInterface<U>>

Source:
Type:
  • (previousValue: T, currentValue: U, currentIndex: string, obj: R) => T