Filters out null, undefined, and empty string values from the provided parameters object, while keeping boolean and numeric values intact. The function returns a new object containing only the non-empty parameters.

  • Parameters

    • params: any

      The object containing the parameters to be filtered.

    Returns Record<string, unknown>

    A new object with only the non-empty parameters.