Skip to content

nathanfaucett/js-array-filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

array-filter

creates a new array with all elements that pass the test implemented by the provided function.

var arrayFilter = require("@nathanfaucett/array-filter");


var array = arrayFilter([1, 2, 3, 4, 5, 6], function isDivisibleBy2(value, index, array) {
    return value % 2 === 0;
});

// array === [2, 4, 6]

About

array filter for the browser and node.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published