1.1.0 • Published 3 years ago

@touratica/array-utils v1.1.0

Weekly downloads
-
License
EUPL-1.2
Repository
github
Last release
3 years ago

array-utils

A npm package that adds extra functionality to the JavaScript built-in Array object. The new functions are:

Array.copy(Array<T>)

Alias for Array.deepCopy.

Array.deepCopy(Array<T>)

Receives an array and returns an array with the same values.

Array.shallowCopy(Array<T>)

Receives an array and returns an array with the same values. Not suitable for objects or multidimensional arrays.

Array.shuffle(Array<T>)

Receives an array and returns a new array with same values shuffled.

.shuffle()

Shuffles an array in-place and returns the same array.

1.1.0

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago