Backbone.JS IsNew()

The Backbone.JS IsNew() model is used to check if a model doesn’t have an id and is not saved to the server, to determine it as a new.

Syntax:

Model.IsNew () 

Example:

  

  
Example  
  
  
  
  
  
  

Output:

True

Explanation: In the above example, the model is new.

Please follow and like us:
Content Protection by DMCA.com