Groovy web console

subscribe to the feed Subscribe
to this
site

Test

Published 2 months ago by Rodri
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
def l = [
[ "last_updated": "20/4", "profile_id": "dwadawdaw123"],
[ "last_updated": "18/4", "profile_id": "dwadawdaw123"],
[ "last_updated": "19/4", "profile_id": "dwadawdaw333", "este": true],
[ "last_updated": "18/4", "profile_id": "dwadawdaw333"]
]

print(l.find({it. profile_id.toString().endsWith("333")}))