blank

method Blank for Crystal Language

Installation

Add this to your application's shard.yml:

dependencies:
  blank:
    github: kostya/blank

Usage

require "blank"

p "".blank? # => true
p 1.blank? # => false
p nil.blank? # => true
p [1].blank? # => false