https://github.com/indatawetrust/elek
json key filter
https://github.com/indatawetrust/elek
filter json key
Last synced: about 2 months ago
JSON representation
json key filter
- Host: GitHub
- URL: https://github.com/indatawetrust/elek
- Owner: indatawetrust
- Created: 2017-03-31T00:51:50.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-05T16:19:58.000Z (about 9 years ago)
- Last Synced: 2025-03-18T20:55:52.528Z (over 1 year ago)
- Topics: filter, json, key
- Language: JavaScript
- Size: 7.81 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://travis-ci.org/indatawetrust/elek)
#### elek
json key filter
````js
import elek from 'elek'
const object = {
"test1": {
"color": "red"
},
"test4": {
"test5": {
"color": "blue"
}
},
"test7": {
"test8": {
"test9": {
"color": "green"
}
}
}
}
elek(object, "color").map(_ => _.color) // ['red', 'blue', 'green']