added with operator to object literal language doc
parent
789fa32b4a
commit
ad66b1344c
|
@ -40,12 +40,22 @@ Literal = int_lit
|
||||||
Object literals construct a value with the object type.
|
Object literals construct a value with the object type.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
ObjectLiteral = "{" PropertyList "}" .
|
ObjectLiteral = "{" ObjectBody "}" .
|
||||||
|
ObjectBody = WithProperties | PropertyList .
|
||||||
|
WithProperties = identifier "with" PropertyList .
|
||||||
PropertyList = [ Property { "," Property } ] .
|
PropertyList = [ Property { "," Property } ] .
|
||||||
Property = identifier [ ":" Expression ]
|
Property = identifier [ ":" Expression ]
|
||||||
| string_lit ":" 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
|
### Array literals
|
||||||
|
|
||||||
Array literals construct a value with the array type.
|
Array literals construct a value with the array type.
|
||||||
|
|
|
@ -9,11 +9,18 @@ menu:
|
||||||
---
|
---
|
||||||
|
|
||||||
{{% note %}}
|
{{% 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
|
Though newer versions of Flux may be available, they will not be included with
|
||||||
InfluxDB until the next InfluxDB v2.0 release._
|
InfluxDB until the next InfluxDB v2.0 release._
|
||||||
{{% /note %}}
|
{{% /note %}}
|
||||||
|
|
||||||
|
## v0.33.1 [2019-06-20]
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
- Copy table will report if it is empty correctly.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## v0.33.0 [2019-06-18]
|
## v0.33.0 [2019-06-18]
|
||||||
|
|
||||||
### Breaking changes
|
### Breaking changes
|
||||||
|
|
Loading…
Reference in New Issue