Magik.Params.clean_nil
You're seeing just the function
clean_nil
, go back to Magik.Params module for more information.
Specs
Clean all nil field from params, support nested map and list.
Example
params = %{"keyword" => nil, "email" => nil, "type" => "customer"}
Magik.Params.clean_nil(params)
# => %{"type" => "customer"}
params = %{user_ids: [1, 2, nil]}
Magik.Params.clean_nil(params)
# => %{user_ids: [1, 2]}