toggle()Toggles values in an array, adding the values that are missing from the array and removing those that are there.
This function is valid in v2.0.0 to v2.24.3. This function has been downloaded 65 times.array.===) will be used to compare values. If specified, this function will be used to determine if two values are equal. The first argument will be the value within array to be tested and the second will be the value within valuesToToggle to be tested.array with the common values of valuesToToggle removed and the missing values added.This function directly requires the following function which is included automatically:
slice()