HH\Lib\Dict\filter_nulls
Given a KeyedTraversable with nullable values, returns a new dict with null values removed
namespace HH\Lib\Dict;
function filter_nulls<Tk as arraykey, Tv>(
KeyedTraversable<Tk, ?Tv> $traversable,
): dict<Tk, Tv>;
Time complexity: O(n) Space complexity: O(n)
Parameters
KeyedTraversable<Tk,
?Tv> $traversable
Returns
dict<Tk, Tv>