Internal method. Asserts if the string is not part of the array.
182058
function (context, name, actual, expectedArray) {
		'use strict';
		for (let i = 0; i < expectedArray.length; i++) {
			if (actual === expectedArray[i]) {
				return;
			}
		}
		context.assert(
			{
				message: "the response did not contain a valid speechOutput",
				expected: "one of [" + expectedArray.map(text => `"${text}"`).join(', ') + "]",
				actual: actual,
				operator: "==", showDiff: true
			});
	}
531879
def isstring(value):
    """"""
    classes = (str, bytes) if pyutils.PY3 else basestring  # noqa: F821
    return isinstance(value, classes)
1119449
private boolean anyStringContainsNewLine(final String[] data) {
		boolean returnVal = false;
		for (int i = 0; i < data.length; i++) {
			if (Util.containsNewlines(data[i])) {
				returnVal = true;
			}
		}
		return returnVal;
	}
280030
function contains(arr, element) {
        for (var i = 0, len = arr.length; i < len; i++) {
            if (arr[i] === element) {
                return true;
            }
        }
        return false;
    }
843693
public static void assertNotEmpty(final String pstring, final String pmessage) {
    if (pstring == null || pstring.length() == 0) {
      throw new IllegalArgumentException(pmessage);
    }
  }
1177651
function hasDotNesting(string) {
  const loc = string.indexOf('.');
  return (loc !== -1) && (loc !== 0) && (loc !== string.length - 1);
}
190430
def contains_all(self, array):
        """"""
        dtype = getattr(array, 'dtype', None)
        if dtype is None:
            dtype = np.result_type(*array)
        return is_real_dtype(dtype)
1326499
public static boolean isNullOrEmpty(@Nullable String string)
  {
    if (string == null || string.isEmpty())
    {
      return true;
    }
    return false;
  }
1150868
public static <O extends Object> void noNullElements(O[] arr)  {
		if(!validation) return;
		notNull(arr);
		for(int i=0; i<arr.length; i++){
			try{
				notNull(arr[i]);
			} catch(ParameterException e1){
				throw new ParameterException(ErrorCode.NULLELEMENTS);
			}
		}
	}
29238
public static String checkNotEmpty(String str, String message) {
        if (checkNotNull(str).isEmpty()) {
            throw new IllegalArgumentException(message);
        }
        return str;
    }
58081
def _is_string(thing):
    
    if (_py3k and isinstance(thing, str)):
        return True
    if (not _py3k and isinstance(thing, basestring)):
        return True
    return False
967226
def assert_not_in(self, actual_collection_or_string, unexpected_value,
                      failure_message='Expected "{1}" not to be in "{0}"'):
        
        assertion = lambda: unexpected_value not in actual_collection_or_string
        self.webdriver_assert(assertion, unicode(failure_message).format(actual_collection_or_string, unexpected_value))
820153
public static boolean isContained( String[] array, String s )
	{
		for (String string : array)
		{
			if( string.equals( s ) )
			{
				return true;
			}
		}
		return false;
	}
917397
protected static boolean assertFalse(String string) {
        return string == null
            || StringUtils.EMPTY.equals(string)
            || StringUtils.FALSE.equalsIgnoreCase(string)
            || StringUtils.NULL.equals(string);
    }
691384
public static boolean contains(final String string, final String[] strings) {
        if (null == strings) {
            return false;
        }

        return Arrays.stream(strings).anyMatch(str -> StringUtils.equals(string, str));
    }
958383
function contains(array, value) {
  for (let i = 0; i < array.length; i++) {
    if (array[i] == value) { // non-strict equality check!
      return true;
    }
  }
  return false;
}
1181774
function isEscapeingAt(string, index) {
	if (index === 0) { return false; }
	let i = index - 1;
	while (
		i >= 0 && string[i] === '\\'
	) { --i; }
	return (index - i) % 2 === 0;
}