• Parses a mixed object into URLSearchParams

    Example

    Parse mixed object

    const mixedObject = {
    k1: "v1",
    k2: null
    };

    const urlSearchParams = fromMixedObject(mixedObject);
    console.log(urlSearchParams); // URLSearchParams([["k1", "v1"]])

    Returns

    the parsed URLSearchParams object

    Parameters

    • obj: Record<string, undefined | null | string | string[]>

    Returns URLSearchParams

Generated using TypeDoc