Skip to content

remove<T>

Removes the first occurrence of a value from the array in place; does nothing when it is absent.

Import:

import 'obsidian-test-mocks/setup';

Signature:

function remove(this: T[], target: T): void

Parameters:

Parameter Type Description
this T[]
target T The value to remove.

Returns: void