Spectacular Cellular Automata
    Preparing search index...

    Function mayRedo

    • If we are allowed to redo.

      Takes in these arguments instead of checking reactiveState directly so that its reactivity can be determined.

      Parameters

      • redoStackLength: number
      • atStart: boolean

      Returns boolean

      export const mayRedo = (redoStackLength, atStart) =>
      redoStackLength > 0 && atStart;