I'm stuck working on something and need help. I want to find a word in a path and use it as an object.

I mean, there is array like this;

```
routes : [
   0: {
      ...
       path : 'x/x/create'
      ... }
   1: {
     ...
     path : 'y/y/y'
     ... }
]

```

and I want to use object with path : 'x/x/create'. And of course it s not always in the first place.
\*Edit: x always changing so I need to find 'create' word