Why JavaScript “length in array” gives different result for arrays having one element or more elements?

前端 未结 0 1533
面向向阳花
面向向阳花 2020-12-15 11:38

In chrome 87, the length in array gives following output:

length in [\'test\']
false

but if we try with more elements, it output

相关标签:
回答
  • 消灭零回复
提交回复
热议问题