* Consider typed array. * @param {Array|TypedArray} data
(data)
| 513 | * @param {Array|TypedArray} data |
| 514 | */ |
| 515 | function isArrayLike(data) { |
| 516 | if (!data) { |
| 517 | return; |
| 518 | } |
| 519 | if (typeof data === 'string') { |
| 520 | return false; |
| 521 | } |
| 522 | return typeof data.length === 'number'; |
| 523 | } |
| 524 | |
| 525 | /** |
| 526 | * 数组或对象遍历 |
no outgoing calls
no test coverage detected