Update COERCION.md
parent
0f813ee4ed
commit
1d7325e03e
|
@ -13,7 +13,7 @@ If there are multiple types allowed in `type` keyword the coercion will only hap
|
|||
|
||||
Possible type coercions:
|
||||
|
||||
|from type →<br>to type ↓|string|number|bolean|null|
|
||||
|from type →<br>to type ↓|string|number|boolean|null|
|
||||
|---|:-:|:-:|:-:|:-:|
|
||||
|string |-|`x`→`""+x`|`false`→`"false"`<br>`true`→`"true"`|`null`→`""`|
|
||||
|number /<br>integer|Valid number /<br>integer: `x`→`+x`<br>|-|`false`→`0`<br>`true`→`1`|`null`→`0`|
|
||||
|
|
Loading…
Reference in New Issue