extras v0.1.1 Kernel.Extra
Link to this section Summary
Functions
Returns true if value is nil, a string with only whitespace, or an empty array
Returns true if value is not blank?
See blank?
Link to this section Functions
Link to this function
blank?(value)
Returns true if value is nil, a string with only whitespace, or an empty array
Examples:
iex> Kernel.Extra.blank?(nil)
true
iex> Kernel.Extra.blank?("")
true
iex> Kernel.Extra.blank?(" ")
true
iex> Kernel.Extra.blank?([])
true
iex> Kernel.Extra.blank?(" .")
false
iex> Kernel.Extra.blank?([1])
false
iex> Kernel.Extra.blank?(false)
false
Link to this function
present?(value)
Returns true if value is not blank?
See blank?