2.0.1 • Published 1 year ago

custom-array-methods-useful v2.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

This package applies to array of strings, numbers and objects.

It performs basic array operations such as, 1.randomize array elements 2.remove duplicate elements 3.remove an element from the array 3.update an element in the array

IMPLEMENTATION

const { randomize, exclude, modify, removeDuplicates } = require('custom-array-methods-useful')

array of string/number/Object:

  1. Randomize

randomize(arr)

  1. Remove one or more elements from the array

exclude(arr, element_to_be_removed)

  1. Update an element (object) in the array

modify(arr, element_to_be_updated, new_element)

  1. Remove duplicates from the array

removeDuplicates(arr)

2.0.1

1 year ago

2.0.0

1 year 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