rectangular-forms
Version:
Angular Reactive Forms adapted for React
16 lines (14 loc) • 404 B
JavaScript
exports.__esModule = true;
exports.removeListItem = removeListItem;
/**
* @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.io/license
*/
function removeListItem(list, el) {
const index = list.indexOf(el);
if (index > -1) list.splice(index, 1);
}
;