<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@csstools/cascade-layer-name-parser](./cascade-layer-name-parser.md) &gt; [LayerName](./cascade-layer-name-parser.layername.md) &gt; [slice](./cascade-layer-name-parser.layername.slice.md)

## LayerName.slice() method

**Signature:**

```typescript
slice(start: number, end: number): LayerName;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

start


</td><td>

number


</td><td>


</td></tr>
<tr><td>

end


</td><td>

number


</td><td>


</td></tr>
</tbody></table>

**Returns:**

[LayerName](./cascade-layer-name-parser.layername.md)

