Module core

Index

Interfaces

Classes

Functions

Functions

arrayEquals(a1: Array<any>, a2: Array<any>, equalsFn: (e1: any, e2: any) => boolean): boolean

Parameters

  • a1: Array<any>
  • a2: Array<any>
  • equalsFn: (e1: any, e2: any) => boolean

Returns

boolean

arrayFirst(a1: Array<any>, predicate: (e: any) => boolean): any

Parameters

  • a1: Array<any>
  • predicate: (e: any) => boolean

Returns

any

arrayIndexOf(a1: Array<any>, predicate: (e: any) => boolean): number

Parameters

  • a1: Array<any>
  • predicate: (e: any) => boolean

Returns

number

arrayRemoveItem(array: Array<any>, item: any, shouldRemoveMultiple: boolean): any

Parameters

  • array: Array<any>
  • item: any
  • shouldRemoveMultiple: boolean

Returns

any

arrayRemoveItem(array: Array<any>, predicate: (e: any) => boolean, shouldRemoveMultiple: boolean): any

Parameters

  • array: Array<any>
  • predicate: (e: any) => boolean
  • shouldRemoveMultiple: boolean

Returns

any

arrayZip(a1: Array<any>, a2: Array<any>, callback: (e1: any, e2: any) => any): Array<any>

Parameters

  • a1: Array<any>
  • a2: Array<any>
  • callback: (e1: any, e2: any) => any

Returns

Array<any>

durationToSeconds(duration: string): number

Parameters

  • duration: string

Returns

number

extend(target: Object, source: Object): Object

Parameters

  • target: Object
  • source: Object

Returns

Object

formatString(format: string, args?: Array<any>): string

Parameters

  • format: string
  • args?: Array<any> optional

Returns

string

getUuid(): string

Returns

string

isDate(o: any): boolean

Parameters

  • o: any

Returns

boolean

isDuration(o: any): boolean

Parameters

  • o: any

Returns

boolean

isEmpty(o: any): boolean

Parameters

  • o: any

Returns

boolean

isFunction(o: any): boolean

Parameters

  • o: any

Returns

boolean

isGuid(o: any): boolean

Parameters

  • o: any

Returns

boolean

isNumeric(o: any): boolean

Parameters

  • o: any

Returns

boolean

memoize(fn: Function): any

Parameters

  • fn: Function

Returns

any

objectForEach(obj: Object, kvfn: (key: string, value: any) => void)

Parameters

  • obj: Object
  • kvfn: (key: string, value: any) => void

pluck(propertyName: string): (obj: Object) => any

Parameters

  • propertyName: string

Returns

(obj: Object) => any

propEq(propertyName: string, value: any): (obj: Object) => boolean

Parameters

  • propertyName: string
  • value: any

Returns

(obj: Object) => boolean

requireLib(libnames: string, errMessage: string): Object

Parameters

  • libnames: string
  • errMessage: string

Returns

Object

stringEndsWith(str: string, suffix: string): boolean

Parameters

  • str: string
  • suffix: string

Returns

boolean

stringStartsWith(str: string, prefix: string): boolean

Parameters

  • str: string
  • prefix: string

Returns

boolean

using(obj: Object, property: string, tempValue: any, fn: () => any): any

Parameters

  • obj: Object
  • property: string
  • tempValue: any
  • fn: () => any

Returns

any