Lamb [logo]

A lightweight, and docile, JavaScript (ES5) library to help embracing functional programming.

Type Definitions

AccumulatorCallback(previousValue, currentValue, idx, arrayLike)

Parameters:
Name Type Description
previousValue * The value returned it the last execution of the accumulator or, in the first iteration, the initialValue if supplied.
currentValue * The value being processed in the current iteration.
idx Number The index of the element being processed.
arrayLike ArrayLike The list being traversed.
Source:

arguments

The built-in arguments object.
Type:
Source:
See:

Array

The built-in Array object.
Type:
Source:
See:
  • Array in Mozilla documentation.

ArrayLike

Any array-like object.
Type:
Source:

Boolean

The built-in Boolean object.
Type:
Source:
See:
  • Boolean in Mozilla documentation.

Date

The built-in Date object.
Type:
Source:
See:
  • Date in Mozilla documentation.

function()

The built-in Function object.
Source:
See:

ListIteratorCallback(element, idx, arrayLike)

Parameters:
Name Type Description
element * The element being evaluated.
idx Number The index of the element within the list.
arrayLike ArrayLike The list being traversed.
Source:

Number

The built-in Number object.
Type:
Source:
See:
  • Number in Mozilla documentation.

Object

The built-in Object object.
Type:
Source:
See:
  • Object in Mozilla documentation.

ObjectIteratorCallback(value, key, source)

Parameters:
Name Type Description
value * The value of the current property.
key String The property name.
source Object The object being traversed.
Source:

RegExp

The built-in RegExp object.
Type:
Source:
See:
  • RegExp in Mozilla documentation.

Sorter

Represents a sorting criteria used by sortedInsert, sort and sortWith, and it's usually built using sorter and sorterDesc.
Type:
Properties:
Name Type Description
isDescending Boolean
compare function
Source:

String

The built-in String object.
Type:
Source:
See:
  • String in Mozilla documentation.

Undefined

The built-in primitive value undefined
Type:
Source:
See: