Oneflow v0.1.2 Oneflow.Helpers
This module contains generic useful functions.
Link to this section Summary
Functions
Prepends given prefix to the given string
Removes any key value pair with a nil value in Enum. Given
the map %{test: nil, key: 1}
it should return a map
with jsut key
Link to this section Functions
Prepends given prefix to the given string.
Examples
iex> Oneflow.Helpers.prepend(“/accounts”, “/api”, :url) “/api/accounts”
iex> Oneflow.Helpers.prepend(“secret”, “token:”, :string) “token:secret”