Dash-case keys

Jordan Harband ljharb at gmail.com
Mon Jan 28 23:34:23 UTC 2019


is that a key called "font-size" or the subtraction of `size` from `font`?

On Mon, Jan 28, 2019 at 1:48 PM Sultan <thysultan at gmail.com> wrote:

> Is there any reason that dash-case keys are not supported in the object
> literal syntax.
>
> For example:
>
> const style = {
>     font-size: 10
> }
>
> Compared to what one needs to do today:
>
> const style = {
>     'font-size': 10
> }
> _______________________________________________
> 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/20190128/1086ca68/attachment.html>


More information about the es-discuss mailing list