> ## Documentation Index
> Fetch the complete documentation index at: https://kk-83bff226.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# removeElement

> Removes a specific element from an array.

## Signature

```typescript path=null start=null theme={null}
removeElement<T>(arr: T[], element: T): T[]
```

## Type Parameters

* **T**

## Parameters

* **arr**: `T[]` - The array from which to remove the element.
* **element**: `T` - The element to remove.

## Returns

`T[]` - A new array with the specified element removed.

## Source

Defined in [array.ts:79](https://github.com/koji/ichigyou/blob/main/src/array.ts#L79)
