BackboneJS - Model Has - Backbone.js

Description

This method returns true if the attribute is set to a non-null or non-undefined value.

Syntax

Parameters

  • attribute − An attribute defines the property of a created model.

Example

Output

Let us carry out the following steps to see how the above code works −

  • Save the above code in the has.htm file.
  • Open this HTML file in a browser.

Output

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

Backbone.js Topics