Function removeNullishValuesFromHash

  • Removes entries from hash whose value is either null or undefined, unless omitNull is false or allowNull includes that key.

    Keys ending with 'Id' are never removed.

    Parameters

    • hash: Record<string, any>

      the object from which entries with nullish values will be removed.

    • omitNull: boolean

      if false, this method returns the object as-is

    • Optional options: {
          allowNull?: string[];
      }
      • Optional allowNull?: string[]

        A list of keys that must be preserved even if their value is null or undefined.

    Returns Record<string, any>

Generated using TypeDoc