Any way to make jQuery.inArray() case insensitive?

后端 未结 8 1657
轮回少年
轮回少年 2020-12-03 16:44

Title sums it up.

8条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-03 17:27

    could loop through the array and toLower each element and toLower what you're looking for, but at that point in time, you may as well just compare it instead of using inArray()

提交回复
热议问题