We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a929efc commit e82df3aCopy full SHA for e82df3a
javascript2/week2/inclass/ex2.js
@@ -68,7 +68,7 @@ const filterListings = (listings, filter) => {
68
const filterFunctions = {
69
type: listing => listing.type.toLowerCase() === filter.type.toLowerCase(),
70
// next line is a bit more complicated, but it works
71
- // it checks if the filter.facilities array includes any of the listing.facilities
+ // it checks if every element in filter.facilities is included in listing.facilities
72
// for filter.facilities.every see:
73
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/every
74
facilities: listing => filter.facilities.every(facility => {
0 commit comments