withBreak blocks

sagiv ben giat sagiv.bengiat at gmail.com
Sat Feb 17 21:21:06 UTC 2018


Yeah, i just thought labels will become deprecated at some point and never
thought of using them.
good point though :)


*שגיב בן גיאט*
*Sagiv ben giat*

On Sat, Feb 17, 2018 at 11:17 PM, Oriol _ <oriol-bugzilla at hotmail.com>
wrote:

> 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
>
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20180217/8101a2e4/attachment.html>


More information about the es-discuss mailing list