withBreak blocks
Oriol _
oriol-bugzilla at hotmail.com
Sat Feb 17 21:17:05 UTC 2018
This is so close to your proposal, and already works right now:
```js
block: {
if (response.error) {
log(response.message);
break block;
}
if (!response.data) {
log("No data");
break block;
}
if (!response.data.todos) {
log("No Todos");
break block;
}
return action({ data: response.data });
}
```
- Oriol
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20180217/732d0b3a/attachment-0001.html>
More information about the es-discuss
mailing list