Created
March 11, 2016 17:30
-
-
Save julesbou/3e05d1814e855bbeee50 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var model1 = new Backbone.Model({ first_name: 'Jordan', last_name: 'Aslam' }); | |
var model2 = new Backbone.Model({ first_name: 'John', last_name: 'Doe' }); | |
console.log(model1.match(‘Jordan’)); // true | |
console.log(model2.match(‘Doe’)); // true | |
console.log(model1.match(/Jo/)); // true | |
console.log(model2.match(/Jo/)); // true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment