这个表情
max([1]) + 1
给予
Unable to call: `+` with arguments: (`1 | Null`, `1`).
Reasons:
- Expecting Type: `Number`, but got: `Null`.
|-- From: `Number`
|- From: +(lhs: Number, rhs: Number) -> Number
50| max([1]) + 1
^^^^^^^^
- Expecting Type: `Array<T>`, but got: `Null`.
|-- From: `Array<T>`
|- From: +<T, E>(lhs: Array<T>, rhs: E) -> Array<T | E>
50| max([1]) + 1
^^^^^^^^
- 10 more options ...
50| max([1]) + 1
^^^^^^^^^^^^
但是
typeOf(max([1]))
给出 Number
。如何获取 max 的结果作为可用于数字运算的数字?