HH\Lib\Dict\filter_nulls

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

This function is available as Dict\filter_nulls() in Facebook's www repository.

Given a KeyedTraversable with nullable values, returns a new dict with those mappings removed

Description

namespace HH\Lib\Dict;

function filter_nulls<Tk as arraykey, Tv>(
  KeyedTraversable<Tk, ?Tv> $traversable,
): dict<Tk, Tv>;

Parameters