AutoBE
    Preparing search index...

    Interface AutoBeRealizeMapExpression

    Transform a source collection into a new array (source.map(...)).

    The classic loop replacement: each element of source is bound to item (and optionally index) while evaluating body. Set asynchronous when the body awaits, so the renderer wraps the result in the target's concurrent await (e.g. await Promise.all(...)).

    interface AutoBeRealizeMapExpression {
        asynchronous: boolean;
        body: AutoBeRealizeExpression;
        index?: string;
        item: string;
        source: AutoBeRealizeExpression;
        type: "map";
    }
    Index

    Properties

    asynchronous: boolean

    Whether body awaits, requiring concurrent-await rendering.

    Expression producing each output element.

    index?: string

    Optional binding name for the current index.

    item: string

    Binding name for the current element inside body.

    Collection being iterated.

    type: "map"

    Type discriminator.