/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ export function removeListItem(list: T[], el: T): void { const index = list.indexOf(el); if (index > -1) list.splice(index, 1); }