Does JavaScript have an equivalent to Python's __getitem__?

后端 未结 0 1364
闹比i
闹比i 2020-12-18 08:39

Does JavaScript have an equivalent to Python\'s __getitem__? I\'d like to create a method for a class that overrides returning undefined for missin

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