HH\Lib\C\contains

This API is part of the Hack Standard Library, not HHVM itself.
Facebook Engineer?

This function is available as C\contains() in Facebook's www repository.

Returns true if the given Traversable contains the value

Description

namespace HH\Lib\C;

function contains<T>(
  Traversable<T> $traversable,
  T $value,
): bool;

Strict equality is used.

Parameters