check is element is not in use in array c# code example
Example 1: javascript check if object is empty
function isObjectEmpty(obj) {
return Object.keys(obj).length === 0;
}
Example 2: how to check if a value is inside an array c#
/*Make sure to add
using System.Linq;
*/
string[] printer = {"jupiter", "neptune", "pangea", "mercury", "sonic"};
if(printer.Contains("jupiter"))
{
Process.Start("BLAH BLAH CODE TO ADD PRINTER VIA WINDOWS EXEC"");
}
Example 3: how to check an array for a value in python
s = set(a)
if 7 in s: