Interface UtilsStatic

Index

Methods

Methods

public compose(fn1: Function, fn2: Function, fns?: Array<Function>): Function

Parameters

  • fn1: Function
  • fn2: Function
  • fns?: Array<Function> optional

Returns

Function

public countThen(num: number, base: Function): Function

Parameters

  • num: number
  • base: Function

Returns

Function

public debounce(func: Function, wait: number, immediate: boolean): Function

Parameters

  • func: Function
  • wait: number
  • immediate: boolean

Returns

Function

public delegate(rules: Object)

Parameters

  • rules: Object

public isDomObj(obj: Object): boolean

Parameters

  • obj: Object

Returns

boolean

public isEnumerable(obj: Object, property: string): boolean

Parameters

  • obj: Object
  • property: string

Returns

boolean

public merge(obj1: Object, obj2: Object, deepClone?: boolean): Object

Parameters

  • obj1: Object
  • obj2: Object
  • deepClone?: boolean optional

Returns

Object

public merge(obj1: Object, obj2: Object, args?: Array<any>): Object

Parameters

  • obj1: Object
  • obj2: Object
  • args?: Array<any> optional

Returns

Object

public push(base: Object, extra: Object, protect?: boolean)

Parameters

  • base: Object
  • extra: Object
  • protect?: boolean optional

public throttle(func: Function, wait: number): Function

Parameters

  • func: Function
  • wait: number

Returns

Function

public toArray(obj: Object, from?: number): Array<any>

Parameters

  • obj: Object
  • from?: number optional

Returns

Array<any>

public uniqueArray(array: Array<any>): Array<any>

Parameters

  • array: Array<any>

Returns

Array<any>