contains method

@method contains

@param mixed element
762003
public function contains($element) : bool
    {
        $acc = [];
        foreach ($this->list as $item) {
            $acc[] = is_array($item) ? A\mapDeep(function ($val) use ($element) {
                return $val == $element;
            }, $item) : $item == $element;
        }

        return self::checkContains($acc);
    }
656249
@Override
    public boolean contains(ChronoElement<?> element) {

        if ((element != null) && (this.map != null)) {
            return this.map.containsKey(element);
        }

        return false;

    }
756816
public function remove($element) : bool
    {
        if (!$this->contains($element)) {
            return false;
        }
        $index = array_search($element, $this->elements, true);
        unset($this->elements[$index]);

        return !$this->contains($element);
    }
253115
public function put($element) {
        if (!$this->contains($element)) {
            $this->elements[] = $element;
            $this->fire(new SetPutEvent($element));
        }
    }
181365
public boolean contains(final T element) {
        if (element == null) {
            return false;
        }

        return lowerEndpoint.includes(element) && upperEndpoint.includes(element);
    }
339738
public function contains($key, $value) {

		return in_array($value, $this->get($key, NULL, FALSE));

	}
781883
@Override
	public boolean contains(Object elem) {
		if (elem == null) return false;
		if (elem instanceof Number) return contains(((Number)elem).intValue());
		return false;
	}
140303
public boolean containsElement(Element element) {
        String deepName = getDeepName(element);
        return elementNameSortOrderMap.containsKey(deepName);
    }
241450
private function processElement( $elements )
	{
		foreach ( $elements as $name => $value )
		{
			if ( $value->count() ) continue;

			if ( ! property_exists( $this, $name ) ) continue;
			$this->$name = (string)$value;
		}
	}
1069146
function contains(array, item) {
  if (array && array.length && item) {
    return array.indexOf(item) !== -1;
  }
  return false;
}
119246
static function assertElementNotFound( $search, $element, $pageSection = null, $type = 'element' )
    {
        $section = ( $pageSection === null ) ? "" : " in '$pageSection' page section";
        Assertion::assertEmpty( $element, "Found '$search' $type" . $section );
    }
52005
function includes(array, element) {
  if (!array) {
    return false;
  }

  const length = array.length;

  for (let i = 0; i < length; i++) {
    if (array[i] === element) {
      return true;
    }
  }

  return false;
}
1334428
@Override
	public boolean contains(Object elem) {
		if (elem == null) return false;
		if (elem instanceof Number) return contains(((Number)elem).longValue());
		return false;
	}
148843
public final void doesNotContain(@NullableDecl Object element) {
    if (Iterables.contains(actual(), element)) {
      failWithActual("expected not to contain", element);
    }
  }
1035875
function (el) {
            for(var i = 0 ; i < this.length ; i ++){
                var flag = vQ.contains(this[i], el);
                if (flag) {
                    return true;
                }
            }
            return false;
        }
741775
@Override
    public void contains(JsonElement expectedJson) {
        assertTrue("Expected to find " + GSON.toJson(expectedJson), checkContains(expectedJson));
    }
309570
public final void contains(@NullableDecl Object element) {
    if (!Iterables.contains(actual(), element)) {
      List<Object> elementList = newArrayList(element);
      if (hasMatchingToStringPair(actual(), elementList)) {
        failWithoutActual(
            fact("expected to contain", element),
            fact("an instance of", objectToTypeName(element)),
            simpleFact("but did not"),
            fact(
                "though it did contain",
                countDuplicatesAndAddTypeInfo(
                    retainMatchingToString(actual(), elementList /* itemsToCheck */))),
            fullContents());
      } else {
        failWithActual("expected to contain", element);
      }
    }
  }