Skip to content

Instantly share code, notes, and snippets.

@odoe

odoe/changeZoom$.js

Created Jan 11, 2016
Embed
What would you like to do?
const changeZoom$ = DOM.select('#zoom')
.events('input')
.map(({ target }) => target.value)
.startWith(4)
.map(value => {
view.zoom = value;
return value;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment