在可可豆类(使用可可造物3.8条游戏发动机)中,我有一阵列“foo”。 我也有一些阵列,如foo = [0,0],[3, 2];
。
However, when I attempt to call console.log(foo.indexOf([0, 0]))
my program gives me a return value of -1
. Is there something I m doing wrong?
I was expecting to receive 0
from the console.log statement shown above.