Groovy web console

subscribe to the feed Subscribe
to this
site

Instanceof check

Published 1 month ago by Alex with tags Expando instanceof object
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
Map m = [:]
println m instanceof Expando
println !m instanceof Expando
println !(m instanceof Expando)