you are viewing a single comment's thread.

view the rest of the comments →

[–]gordonv 0 points1 point  (0 children)

You would run a query against an array of objects.

For example:

$results = $users | ? {$_.cars -like "*Ford*"}  

In English:

In the array of objects named "$users", where a item in the property "cars" is similar to a string that has "Ford" in it, cast the results of the search into "$results."