Home » Backbone.js model.has()

Backbone.js model.has()

by Online Tutorials Library

Backbone.js model.has()

The Backbone.js Has model returns true if the attribute is set to a non null or non-undefined value.

Syntax:

Parameter explanation:

attributes: It defines property of a created model.

Let’s take an example.

See this example:

You may also like