• Wraps a pre-existing One

    Type Parameters

    • T

    Parameters

    Returns T[keyof T]

    Example

    import { One, wrap } from "deleight/onetomany";
    const arr1 = [], arr2 = [], arr3 = [];
    const o4 = new One({ arr1, arr2, arr3 });
    const wo4 = wrap(o4);