# Module: slice

## Table of contents

### Functions

- [default](slice.md#default)

## Functions

### default

▸ **default**(`collection`, `begin`, `end`): `any`[]

Extract a subset of iterate items from a collection.

#### Parameters

| Name | Type |
| :------ | :------ |
| `collection` | `Collection` |
| `begin` | `number` |
| `end` | `number` |

#### Returns

`any`[]

#### Defined in

[src/slice.js:24](https://github.com/Twipped/js-utils/blob/9c196e3/src/slice.js#L24)
