@webdeveric/utils
    Preparing search index...

    Function byRandom

    • Randomly return -1, 0, or 1. This is an easy way to shuffle an array.

      Returns number

      [1, 2, 3, 4, 5].sort(byRandom); // shuffled order, e.g. [3, 1, 5, 2, 4]