Function addNewKeyToValuesWithDefaultValue

  • Inserts a new key containing a default value into the values.

    Parameters

    • keyname: string

      The name of the key.

    • type: Type

      The type of the key.

    • values: ZValues

      The values to add the key to.

    • defaultValue: any

      The default value to set for the key.

    Returns ZValues

    The new values.