Skip to content

Shuffle function could be simplified  #19

Description

@mkatenolan

We used a function to do the same thing which is only a couple of lines .... you could re-factor to use the following:

function shuffle(array) { array.sort(() => Math.random() - 0.5); }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions