Global

Type Definitions

eachCallback(value, index) → {Boolean}

EachCallback
Parameters:
Name Type Description
value any element of list
index int index of element in list
Source:
Returns:
return false to end loop
Type
Boolean

findCallback(value) → {Boolean}

FindCallback
Parameters:
Name Type Description
value any value of list
Source:
Returns:
return truthy if found
Type
Boolean

findNodeCallback(node) → {Boolean}

FindNodeCallback
Parameters:
Name Type Description
node node current node of list
Source:
Returns:
return truthy if found
Type
Boolean

reduceCallback(acc, value, index) → {any}

ReduceCallback
Parameters:
Name Type Description
acc any accumulated value
value any element of list
index int index of element in list
Source:
Returns:
new accumulated value
Type
any

reduceNodesCallback(acc, node, index) → {any}

ReduceNodesCallback
Parameters:
Name Type Description
acc any accumulated value of nodes
node ListNode current node of list
index int index of node
Source:
Returns:
new accumulated value of nodes
Type
any