create-expo-cljs-app
Version:
Create a react native application with Expo and Shadow-CLJS!
42 lines (25 loc) • 843 B
Markdown
object keys and values into a new object
```
$ npm install --save filter-obj
```
```js
var filterObj = require('filter-obj');
var obj = {
foo: true,
bar: false
};
var newObject = filterObj(obj, function (key, value, object) {
return value === true;
});
//=> {foo: true}
var newObject2 = filterObj(obj, ['bar']);
//=> {bar: true}
```
- [map-obj](https://github.com/sindresorhus/map-obj) - Map object keys and values into a new object
- [object-assign](https://github.com/sindresorhus/object-assign) - Copy enumerable own properties from one or more source objects to a target object
MIT © [Sindre Sorhus](http://sindresorhus.com)
> Filter