flatForEach
flatForEach<
S,B>(source,binding,body):FlatForEachSpec<SextendsFluentSpec<X> ?X:S&Spec,BextendsFluentSpec<Y> ?Y:B&Spec>
Defined in: extract/spec.ts:1105
Iterate over values from source and flatten body results into a single array.
Like forEach but the body must produce arrays, which are concatenated.
Type Parameters
Section titled “Type Parameters”S extends SpecLike
B extends SpecLike
Parameters
Section titled “Parameters”source
Section titled “source”S
binding
Section titled “binding”string
B
Returns
Section titled “Returns”FlatForEachSpec<S extends FluentSpec<X> ? X : S & Spec, B extends FluentSpec<Y> ? Y : B & Spec>
Example
Section titled “Example”flatForEach( literal(['sheet1', 'sheet2']), 'sheetName', someArraySpecThatUsesSheetName)