Class

FSIterable

FSIterable()

This is util class not inteded to use directly, It used for iterate through dirents.
Constructor

# new FSIterable()

View Source fs-iterable.class.ts, line 5

Classes

FSIterable

Members

function

# end

Call when all items pushed

View Source fs-iterable.class.ts, line 99

function

# push

Push next item to iterable chain.

View Source fs-iterable.class.ts, line 93

Methods

# end()

Call when all items pushed

View Source fs-iterable.class.ts, line 16

# filter(callback)

Pass items only when callback returns true.
Parameters:
Name Type Description
callback function that returns true if item must passed.

View Source fs-iterable.class.ts, line 38

# async forEach(callback)

The forEach() method executes a provided function once for each array element
Parameters:
Name Type Description
callback function performs with each input item

View Source fs-iterable.class.ts, line 70

# map(callback)

Transform input items
Parameters:
Name Type Description
callback function that peroform transform operation on input item

View Source fs-iterable.class.ts, line 24

# push()

Push next item to iterable chain.

View Source fs-iterable.class.ts, line 10

# async reduce(callback, initialValue)

Calls the specified callback function for all the input elements. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
Parameters:
Name Type Description
callback A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
initialValue initialValue is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument.

View Source fs-iterable.class.ts, line 57

# async toArray()

The toArray() method collect iterator items to array.

View Source fs-iterable.class.ts, line 79