Functions
add
- add(augend: number, addend: number): number
-
Parameters
-
augend: number
-
addend: number
Returns number
ceil
- ceil(num: number, precision?: number): any
-
Parameters
-
num: number
-
precision: number = 0
Returns any
chunk
- chunk(input: any, size: any): any
concat
- concat(input: any, ...args: any): any
-
Parameters
-
input: any
-
Rest ...args: any
Returns any
debounce
- debounce(func: any, wait?: number): (...args: any) => void
-
Parameters
-
func: any
-
wait: number = 100
Returns (...args: any) => void
defaults
- defaults(obj: any, defs: any): any
difference
- difference(...arrays: any): any
divide
- divide(dividend: number, divisor: number): number
-
Parameters
-
dividend: number
-
divisor: number
Returns number
drop
- drop(arr: any, index?: any): any
dropRight
- dropRight(arr: any, index?: any): any
each
- each(collection: any, _each: any): void
-
Parameters
-
collection: any
-
_each: any
Returns void
fastCloneDeep
- fastCloneDeep(obj: any): any
filter
- filter(arr: any, fn?: any): any
-
Parameters
-
arr: any
-
Optional fn: any
Returns any
find
- find(arr: any, query?: any, findIndex?: boolean): any
-
Parameters
-
arr: any
-
Optional query: any
-
findIndex: boolean = false
Returns any
findEach
- findEach(arr: any, query: any, fn: any): void
-
Parameters
-
arr: any
-
query: any
-
fn: any
Returns void
findIndex
- findIndex(arr: any, query?: any): any
-
Parameters
-
arr: any
-
Optional query: any
Returns any
floor
- floor(num: number, precision?: number): any
-
Parameters
-
num: number
-
precision: number = 0
Returns any
get
- get(obj: any, path: string, def?: any): any
-
Parameters
-
obj: any
-
path: string
-
Optional def: any
Returns any
has
- has(obj: any, path: string): boolean
-
Parameters
Returns boolean
intersection
- intersection(a: any, b: any): any
isArray
- isArray(val: any): boolean
-
Parameters
Returns boolean
isBoolean
- isBoolean(value: any): boolean
-
Parameters
Returns boolean
isEmpty
- isEmpty(obj: any): boolean
-
Parameters
Returns boolean
isEqual
- isEqual(a: any, b: any): boolean
-
Parameters
Returns boolean
isInteger
- isInteger(val: any): boolean
-
Parameters
Returns boolean
isNaN
-
Parameters
Returns boolean
isNil
-
Parameters
Returns boolean
isNull
- isNull(val: any): boolean
-
Parameters
Returns boolean
isNumber
- isNumber(value: any): boolean
-
Parameters
Returns boolean
isObject
- isObject(val: any): boolean
-
Parameters
Returns boolean
isObjectLike
- isObjectLike(val: any): boolean
-
Parameters
Returns boolean
isPlainObject
- isPlainObject(value: any): boolean
-
Parameters
Returns boolean
isRegExp
- isRegExp(value: any): boolean
-
Parameters
Returns boolean
isString
- isString(val: any): boolean
-
Parameters
Returns boolean
keys
-
Parameters
Returns string[]
map
- map(arr: any, fn: any): any
matches
- matches(query: any): (comp: any) => boolean
-
Parameters
Returns (comp: any) => boolean
-
-
Parameters
Returns boolean
max
-
Parameters
Returns number
maxBy
- maxBy(arr: any, fn: any): any
mean
-
Parameters
Returns number
meanBy
- meanBy(arr: any, fn: any): number
-
Parameters
Returns number
min
-
Parameters
Returns number
minBy
- minBy(arr: any, fn: any): any
mod
- mod(a: number, b: number): number
-
Parameters
Returns number
multiply
- multiply(multiplier: number, multiplicand: number): number
-
Parameters
-
multiplier: number
-
multiplicand: number
Returns number
pathParts
- pathParts(path: string): string[]
-
Parameters
Returns string[]
pick
- pick(object: any, keys?: any): any
-
Parameters
-
object: any
-
Optional keys: any
Returns any
property
- property(path: string): (obj: any) => any
-
Parameters
Returns (obj: any) => any
propertyOf
- propertyOf(obj: any): (path: string) => any
-
Parameters
Returns (path: string) => any
round
- round(num: number, precision?: number): any
-
Parameters
-
num: number
-
precision: number = 0
Returns any
set
- set(obj: any, path: string, value: any): any
-
Parameters
-
obj: any
-
path: string
-
value: any
Returns any
subtract
- subtract(minuend: number, subtrahend: number): number
-
Parameters
-
minuend: number
-
subtrahend: number
Returns number
sumBy
- sumBy(arr: any, fn: any): any
trim
- trim(str: string, c?: string): string
-
Parameters
-
str: string
-
c: string = '\\s'
Returns string
https://lodash.com/docs/4.17.15#add