@amirsavand/ngx-common - v5.4.0
    Preparing search index...

    Function removeEmptyValuesFromDict

    • Removes properties with empty string, null and undefined values from the given source and returns a new dictionary.

      Type Parameters

      Parameters

      • dict: T

        Dictionary to go through.

      • noEmptyArray: boolean = false

        Whether to remove values that are empty arrays.

      Returns Partial<T>

      New dictionary with the properties removed.