經安全檢測,此網站為安全網站,請放心前往原始網址!

array.contains(obj) in JavaScript - Stack Overflow

What is the most concise and efficient way to find out if a JavaScript array contains an obj? This is the only way I know to do it: function contains(a, obj) { for (var i = 0; i < a ...

stackoverflow.com

網址安全性掃描由 google 提供