可将值存储为数组中的打包元素的类型的静态接口。这些方法和属性应在构造函数上定义。
Members
用于将对象打包到数组中的元素数量。
Methods
将提供的实例存储到提供的数组中。
| Name | Type | Default | Description |
|---|---|---|---|
value |
* | 要打包的值。 | |
array |
Array.<number> | 要打包到的数组。 | |
startingIndex |
number |
0
|
optional 数组中开始打包元素的索引。 |
从打包的数组中检索实例。
| Name | Type | Default | Description |
|---|---|---|---|
array |
Array.<number> | 打包的数组。 | |
startingIndex |
number |
0
|
optional 要解包的元素起始索引。 |
result |
object | optional 用于存储结果的对象。 |
Returns:
修改后的result参数,如果未提供则返回一个新的Object实例。
