清欢何欢

Results 2 comments of 清欢何欢

倒序查找下标函数里,“item == 1”的返回值不应该是3吗? console.log(findLastIndex([1, 2, 3, 4], function(item, index, array){ if (item == 1) return true; })) // 0

@delayk @HowardTangHw 嗯嗯,懂了,谢谢!