1.1.0 • Published 1 year ago

@touratica/array-utils v1.1.0

Weekly downloads
-
License
EUPL-1.2
Repository
github
Last release
1 year 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

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago