• Returns the item at a given index. If the index does not exist, def is returned

    Example

    unwind([{ foo: ["bar 1", "bar 2"] }, { foo: ["bar 3", "bar 4", "bar 5"] }], "foo");
    // [{ foo: "bar 1" }, { foo: "bar 2" }, { foo: "bar 3" }, { foo: "bar 4" }, { foo: "bar 5" }]

    Type Parameters

    • T

    Parameters

    • arr: T[]
    • path: string

    Returns unknown[]

Generated using TypeDoc