Test case details

Preparation Code

var arr = [        'that',        'is',        'some',        'nice',        'some',        'test',        'here',     ]         var obj = {        'that' : null,        'is' : null,        'some' : null,        'nice' : null,        'test' : null,        'here' : null     }

Test cases

Test #1

if (arr.indexOf('that') !== -1) {   return; }

Test #2

/*if ('that' in obj) {   // found }*/         for (var i = 0; i < arr.length; i++) {             if (arr[i] === "that") {                 return true;             }         }

Test #3

if (arr.indexOf('here') !== -1) {   // found }

Test #4

if ('here' in obj) {   // found }

Test #5

if (typeof obj['that'] !== "undefined") {   // found }

Test #6

if (typeof obj['here'] !== "undefined") {   // found }