1.1.0 • Published 4 years ago
filter-data-sort v1.1.0
How to use the filter:
1) Declare a variable to store the package:
const filterDataSort = require("filter-data-sort");
2) Create an array of numbers or string (i.e: numbers):
let arr = 2, 1, 5, 4;
3) Call the variable that contains the method for filtering and pass as argument the array:
console.log(filterDataSort(arr));