It is used to remove a model or array of models from the collection.
models − It contains the names of the collection instances, which need to be removed from the collection.
options − It includes the model type which will be removed from the collection.
Let us carry out the following steps to see how the above code works −
Save the above code in the remove.htm file.
Open this HTML file in a browser.