Skip to content

nathanfaucett/js-object-filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

object-filter

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

var objectFilter = require("@nathanfaucett/object-filter");


objectFilter({
        a: "a",
        b: "b",
        c: "c"
    },
    function(value, key) {
        return key === "b";
    }
) === {
    b: "b"
};

About

object filter for the browser and node.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages