jenesius-vue-form
Version:
Heavy form system for Vue.js
9 lines (8 loc) • 394 B
TypeScript
/**
* @description The method is used to add an element to the array if it does not exist, and to remove an element from the array when
* Help with splicing in any case.
* @param array
* @param value
* @param limit Предельное число элементов в массиве.
*/
export default function toggleValueFromArray<T>(array: T[], value: T, limit?: number): T[];