KnockoutJS remove() Method - KnockoutJS

What is KnockoutJS remove() Method?

The KnockoutJS Observable remove('value') method remove items matching with 'value' and return as array.

Syntax

Parameters:

Accepts one parameter as value to be removed.

Example

Output

Let's carry out the following steps to see how above code works:

Save above code in array-remove.htm file.

Open this HTML file in a browser.

Select item to be removed from list and click on Remove Button.

KnockoutJS remove() Method

All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

KnockoutJS Topics