The .in() function is used to check for an existence of a row in a given array. The array can be a simple array or a complex array that contains JSON object.

The .in() takes one to many arguments. The first argument is a collection to query against and is required. The second and so forth arguments are optional. The arguments are a string of the name of the field to compare against. Each field is considered an AND clause.

in(collection, [field:string], [field:string], …)
type Collection<T> = T[];
in<T>(collect: Collection<T>, ...fields: string[]): jinqJs;
var result = new jinqJs()
                  .from([15,30,11])       
                  .in([30,15])
                  .select(); 

/* result:  [15,30] */

result = new jinqJs()
                  .from([15,30,11])       
                  .not()
                  .in([30,15])
                  .select();

/* result:  [11] */