Any way to define getters for lazy variables in Javascript arrays?

后端 未结 5 1539
自闭症患者
自闭症患者 2021-01-04 05:50

I\'m trying to add elements to an array that are lazy-evaluated. This means that the value for them will not be calculated or known until they are accessed. This is like a p

5条回答
提交回复
热议问题