Observed since 20 Oct, 18:01 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
In this package you get 10 javascript array functionalities that can be useful for you.
A simple npm package showcasing 10 essential array methods in JavaScript.
npm install 10functionalities
const arrayMethods = require('array-methods-package');
// Sample array
const arr = [1, 2, 3, 4, 5];
// 1. forEach() method
arrayMethods.forEachExample(arr);
// 2. map() method
arrayMethods.mapExample(arr);
// 3. filter() method
arrayMethods.filterExample(arr);
// 4. reduce() method
arrayMethods.reduceExample(arr);
// 5. find() method
arrayMethods.findExample(arr);
// 6. some() method
arrayMethods.someExample(arr);
// 7. every() method
arrayMethods.everyExample(arr);
// 8. sort() method
arrayMethods.sortExample();
// 9. indexOf() method
arrayMethods.indexOfExample();
// 10. lastIndexOf() method
arrayMethods.lastIndexOfExample();
Iterates through each element of the array.
Creates a new array by performing a function on each array element.
Creates a new array with elements that pass a test.
Executes a reducer function on each element of the array, resulting in a single output value.
Returns the value of the first array element that satisfies a provided condition.
Checks if at least one element in the array satisfies the provided condition.
Checks if all elements in the array satisfy the provided condition.
Sorts the elements of the array either in ascending or descending order.
Returns the index of the first occurrence of a specified value in the array.
Returns the index of the last occurrence of a specified value in the array.
This project is licensed under the MIT License - see the LICENSE file for details.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 1.0.0Registry latest | 6 May 2024 | 0 |
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Observed since 20 Oct, 18:01 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:26169bf786816e7cbb7a28c5b6ff94e38290bde7f1bdbd87377645a10b4d9607