key?

check if collection contains given key


Parameters

key? collection :dictionary :object
     key :any

Returns

  • :logical

Examples

copy
user: #[ name: "John" surname: "Doe" ] key? user 'age ; => false if key? user 'name [ print ["Hello" user\name] ] ; Hello John

Related