I can't figure out what I'm doing wrong. Why is this not returning true? What am I missing
var suppliers = ["13419", "12999", "13992"];
var id = 13419;
if ($.inArray(id, suppliers) != -1) {
console.log('duplicate');
} else {
console.log('no dupe');
}
stringwithint