[Extension] BetterArrays - 60 useful array blocks!

:loudspeaker: 1.2.0 update (yes, there have been minor updates I didn’t announce)
Changelog:

  • Added new shuffle and toShuffled methods (certainly not related to the upcoming jam) :face_with_hand_over_mouth:
  • Fixed minor issues and updated dependencies

Shuffle method

The shuffle method rearranges items in an array in a random order. This method modifies the original array.

function shuffle(array: any[]): void

image

To shuffled method

The toShuffled method returns an array copy with items rearranged in a random order. This method does not modify the original array.

function toShuffled(array: any[]): any[]

image

Until next time, peace :v:

6 Likes