Skip to content

Instantly share code, notes, and snippets.

@joicemjoseph
Created February 4, 2015 19:51
Show Gist options
  • Save joicemjoseph/3d7ae24965f521cb7272 to your computer and use it in GitHub Desktop.
Save joicemjoseph/3d7ae24965f521cb7272 to your computer and use it in GitHub Desktop.
Javascript filters
homes.filter(function (el) {
return el.price <= 1000 &&
el.sqft >= 500 &&
el.num_of_beds >=2 &&
el.num_of_baths >= 2.5;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment