@nbogie/p5.neill-utils
    Preparing search index...

    Function toggleBooleanInConfig

    • Toggles the named boolean property on the given config object in-place.

      Type Parameters

      • K extends string | number | symbol
      • O extends object

      Parameters

      • key: K

        The name of the key to toggle. Must be a boolean property.

      • config: O

        The configuration object.

      Returns boolean

      the new value of the property

      If the key does not exist on the object.

      If the property exists but is not a boolean.