added with operator to object literal language doc
parent
789fa32b4a
commit
ad66b1344c
|
@ -40,10 +40,20 @@ Literal = int_lit
|
|||
Object literals construct a value with the object type.
|
||||
|
||||
```js
|
||||
ObjectLiteral = "{" PropertyList "}" .
|
||||
PropertyList = [ Property { "," Property } ] .
|
||||
Property = identifier [ ":" Expression ]
|
||||
| string_lit ":" Expression .
|
||||
ObjectLiteral = "{" ObjectBody "}" .
|
||||
ObjectBody = WithProperties | PropertyList .
|
||||
WithProperties = identifier "with" PropertyList .
|
||||
PropertyList = [ Property { "," Property } ] .
|
||||
Property = identifier [ ":" Expression ]
|
||||
| string_lit ":" Expression .
|
||||
```
|
||||
|
||||
**Examples**
|
||||
```js
|
||||
{a: 1, b: 2, c: 3}
|
||||
{a, b, c}
|
||||
{o with x: 5, y: 5}
|
||||
{o with a, b}
|
||||
```
|
||||
|
||||
### Array literals
|
||||
|
|
|
@ -9,11 +9,18 @@ menu:
|
|||
---
|
||||
|
||||
{{% note %}}
|
||||
_The latest release of InfluxDB v2.0 alpha includes **Flux v0.33.0**.
|
||||
_The latest release of InfluxDB v2.0 alpha includes **Flux v0.33.1**.
|
||||
Though newer versions of Flux may be available, they will not be included with
|
||||
InfluxDB until the next InfluxDB v2.0 release._
|
||||
{{% /note %}}
|
||||
|
||||
## v0.33.1 [2019-06-20]
|
||||
|
||||
### Bug fixes
|
||||
- Copy table will report if it is empty correctly.
|
||||
|
||||
---
|
||||
|
||||
## v0.33.0 [2019-06-18]
|
||||
|
||||
### Breaking changes
|
||||
|
|
Loading…
Reference in New Issue