Methods
Static CopyEachSource
- CopyEachSource<TSource, TTarget>(source: TSource, target: TTarget): TTarget
-
Type parameters
Parameters
-
source: TSource
-
target: TTarget
Returns TTarget
Static CopyEachTarget
- CopyEachTarget<TSource, TTarget>(source: TSource, target: TTarget): TTarget
-
Type parameters
Parameters
-
source: TSource
-
target: TTarget
Returns TTarget
Static CopyNullProps
- CopyNullProps<TSource, Props, TTarget>(source: TSource, ...props: Props[]): TTarget
-
Type parameters
-
TSource
-
-
TTarget: Pick<TSource, Props>
Parameters
-
source: TSource
-
Rest ...props: Props[]
Returns TTarget
Static CopyProps
- CopyProps<TSource, Props, TTarget>(source: TSource, ...props: Props[]): TTarget
-
Type parameters
-
TSource
-
-
TTarget: Pick<TSource, Props>
Parameters
-
source: TSource
-
Rest ...props: Props[]
Returns TTarget
Static DeepCopy
-
Type parameters
Parameters
Returns T
Static DeepEquals
- DeepEquals<T>(source: T, target: T): boolean
-
Type parameters
Parameters
Returns boolean
Static DeepMerge
- DeepMerge<T>(source: Partial<T>, target: Partial<T>): void
-
Type parameters
Parameters
-
source: Partial<T>
-
target: Partial<T>
Returns void
Static DeepMerge2
- DeepMerge2<T>(source: Partial<T>, target: Partial<T>): any
-
Type parameters
Parameters
-
source: Partial<T>
-
target: Partial<T>
Returns any
Static GetMethodNames
- GetMethodNames(obj: any, ...excluded: string[]): string[]
-
Parameters
-
obj: any
-
Rest ...excluded: string[]
Returns string[]
Static GetOwnMethodNames
- GetOwnMethodNames<T>(instance: any, ...excluded: string[]): string[]
-
Type parameters
Parameters
-
instance: any
-
Rest ...excluded: string[]
Returns string[]
Static GetValue
- GetValue<T, K>(obj: T, key: K): T[K]
-
Type parameters
Parameters
Returns T[K]
Static ObjectFromArray
- ObjectFromArray<T, K>(array: Array<T>, indexKey: K): TypedProperty<T>
-
Type parameters
Parameters
-
array: Array<T>
-
indexKey: K
Static OmitProps
- OmitProps<TSource, Props, TTarget>(source: TSource, ...props: Props[]): TTarget
-
Type parameters
-
TSource
-
-
TTarget: Omit<TSource, Props>
Parameters
-
source: TSource
-
Rest ...props: Props[]
Returns TTarget
Static get
- get<T>(obj: object, path: string): T
-
Type parameters
Parameters
Returns T
Static hasMethod
- hasMethod<T>(obj: T, name: string): boolean
-
Type parameters
Parameters
Returns boolean
Static isInstanceOf
- isInstanceOf<T>(value: any, instanceOf: { constructor: any }): value is T
-
Type parameters
Parameters
-
value: any
-
instanceOf: { constructor: any }
Returns value is T
The classes must use the toStringTag symbol.