is?

check whether value is of given type


Parameters

is? type :type :block
    value :any

Returns

  • :logical

Examples

copy
is? :string "hello" ; => true is? :block [1 2 3] ; => true is? :integer "boom" ; => false is? [:string] ["one" "two"] ; => true is? [:integer] [1 "two] ; => false

Related