API Reference

Function Composition

curry(fn)

Auto-curry any function for partial application

compose(...fns)

Right-to-left function composition

pipe(value, ...fns)

Left-to-right data pipeline for immediate evaluation

flow(...fns)

Left-to-right function composition for reusable pipelines

Array Operations

map(fn, array)

Transform array elements

filter(fn, array)

Filter array by predicate

reduce(fn, array)

Reduce array without initial value

fold(fn, initial, array)

Fold array with initial value

flatMap(fn, array)

Map and flatten results

each(fn, array)

Iterate over array for side effects

partition(fn, array)

Split array by predicate into [passed, failed]

group(fn, array)

Group array by key function

zip(arr1, arr2)

Zip two arrays into pairs

zipWith(fn, arr1, arr2)

Zip arrays with combining function

uniq(array)

Remove duplicate values

uniqBy(fn, array)

Remove duplicates by key function

Array Queries

first(fn, array)

Find first matching element

last(fn, array)

Find last matching element

every(fn, array)

Check if all elements match predicate

any(fn, array)

Check if any element matches predicate

best(comparator, array)

Find best element using comparator

Object Operations

prop(key)

Create property accessor function

pluck(key, array)

Extract property from array of objects

pick(keys, obj)

Select specific properties from object

omit(keys, obj)

Remove specific properties from object

path(pathArray, obj)

Get nested property value safely

assoc(key, value, obj)

Set property immutably

dissoc(key, obj)

Remove property immutably

assign(obj1, obj2)

Merge objects immutably

Utilities

identity(x)

Return input unchanged

constant(x)

Create function that always returns x

tap(fn)

Execute side effect and return input

Type Checks

isFunction(x)

Check if value is a function

isObject(x)

Check if value is an object

isArray(x)

Check if value is an array

isString(x)

Check if value is a string

isNumber(x)

Check if value is a number

isDate(x)

Check if value is a Date

isRegExp(x)

Check if value is a RegExp

exists(x)

Check if value is not null or undefined

truthy(x)

Check if value is truthy

falsy(x)

Check if value is falsy