Functions
addWithFunction
- addWithFunction(list: any[], item: any, fn: ((obj: any) => boolean)): void
Parameters
list: any[]
item: any
fn: ((obj: any) => boolean)
Parameters
Returns boolean
Returns void
extend
- extend(target: Object, source: Object): any
Parameters
target: Object
source: Object
Returns any
fastTrim
- fastTrim(s: string): string
findWithFunction
- findWithFunction(list: any[], fn: ((obj: any) => boolean)): number
Parameters
list: any[]
fn: ((obj: any) => boolean)
Parameters
Returns boolean
Returns number
isArray
- isArray(obj: any): boolean
Parameters
Returns boolean
isBoolean
- isBoolean(obj: any): boolean
Parameters
Returns boolean
isDate
- isDate(obj: any): boolean
Parameters
Returns boolean
isEmpty
- isEmpty(obj: any): boolean
Parameters
Returns boolean
isFunction
- isFunction(obj: any): boolean
Parameters
Returns boolean
isNamedFunction
- isNamedFunction(obj: any): boolean
Parameters
Returns boolean
isNull
- isNull(obj: any): boolean
Parameters
Returns boolean
isNumber
- isNumber(obj: any): boolean
Parameters
Returns boolean
isObject
- isObject(obj: any): boolean
Parameters
Returns boolean
isString
- isString(obj: any): boolean
Parameters
Returns boolean
removeWithFunction
- removeWithFunction(list: any[], fn: ((obj: any) => boolean)): number
Parameters
list: any[]
fn: ((obj: any) => boolean)
Parameters
Returns boolean
Returns number
suggest
- suggest(list: any[], item: any, insertAtHead?: boolean): boolean
Parameters
list: any[]
item: any
Optional insertAtHead: boolean
Returns boolean