empty?

check if given collection is empty


Parameters

empty? collection :null :string :dictionary :block

Returns

  • :logical

Examples

copy
empty? "" ; => true empty? [] ; => true empty? #[] ; => true empty? [1 "two" 3] ; => false

Related