Len returns the length of the array.
()
| 334 | |
| 335 | // Len returns the length of the array. |
| 336 | func (v *Value) Len() int64 { |
| 337 | length := v.Get("length") |
| 338 | defer length.Free() |
| 339 | return length.ToInt64() |
| 340 | } |
| 341 | |
| 342 | // ByteLen returns the length of the ArrayBuffer. |
| 343 | func (v *Value) ByteLen() int64 { |