I have a string like this

```
test/something/else

```

I would like to generate two variables

```
first = test
second = something/else

```

I tried with

```
const [first, ...second] = "test/something/else".split("/");

```

and it gives me the right value for **first** but for **second** it's an array. So I have to join the array to get the value I need?