Skip to content

Instantly share code, notes, and snippets.

@deanshub
Created June 6, 2019 10:46
Show Gist options
  • Save deanshub/d370d5f947fb30effe2d0a990f24e26d to your computer and use it in GitHub Desktop.
Save deanshub/d370d5f947fb30effe2d0a990f24e26d to your computer and use it in GitHub Desktop.
const {range} = require('rxjs')
const {filter, map, take, toArray} = require('rxjs/operators')
export default {
odd: function(value) {
return filter((x)=>x%2)
},
get1to10: function() {
return range(1, 10)
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment