-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Instead of this:
let {DOM: timeTravelBar$, timeTravel} = makeTimeTravel(DOM, [
{stream: count$, label: 'count$'},
{stream: action$, label: 'action$'}
]);How about this?
let {DOM: timeTravelBar$, timeTravel} = makeTimeTravel(DOM, {
count$,
action$
});You can loop over the properties of an object and get its key. That above was sugar for ES5:
let {DOM: timeTravelBar$, timeTravel} = makeTimeTravel(DOM, {
count$: count$,
action$: action$
});Meaning you will have both the key as a string and the value. Gladly ES6 makes it easy to avoid this repetition.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels