If NOT in array

If NOT in array

Is this the right way to do IS NOT in array:

  1. $.inArray(tbodyNumber, ids) == -1
Since IS in array is:

  1. $.inArray(id, ids) != -1

id should be in ids, but tbodyNumber should not.