WuunderUtils.Presence (Wuunder Utils v0.1.0)
Acts as proxy module towards present? functions of String and Map
Summary
Types
Functions
Link to this function
empty?(value)
The inverse of present?
Examples
iex> WuunderUtils.Presence.empty?(nil)
true
iex> WuunderUtils.Presence.empty?(%{})
true
iex> WuunderUtils.Presence.empty?(%{value: 1200})
false
iex> WuunderUtils.Presence.empty?("")
true
iex> WuunderUtils.Presence.empty?("test")
false
Link to this function
present?(value)
Checks if value is present
Examples
iex> WuunderUtils.Presence.present?(nil)
false
iex> WuunderUtils.Presence.present?(%{})
false
iex> WuunderUtils.Presence.present?(%{value: 1200})
true
iex> WuunderUtils.Presence.present?("")
false
iex> WuunderUtils.Presence.present?("test")
true