@kayahr/assert
    Preparing search index...

    Function assertNotHasProperty

    • Asserts that given object does not have a property with the given name.

      Parameters

      • value: object

        The object to check.

      • propertyName: string | symbol

        The property name to look for.

      • Optionalreason: string

        Optional reason added to exception message when assertion fails.

      Returns void

      AssertionError when object has given property.