rhodonite
    Preparing search index...

    Function ifExistsThen

    • Executes a callback if the value exists

      Type Parameters

      • T

        The type of the value

      Parameters

      • callback: (value: T) => void

        The callback function to execute

      • Optionalvalue: T

        The value to check (optional)

      Returns value is T

      True if the value exists and callback was executed, false otherwise