Skip to content

Commit e82df3a

Browse files
committed
inclass files from js2week2 improvement
1 parent a929efc commit e82df3a

File tree

1 file changed

+1
-1
lines changed
  • javascript2/week2/inclass

1 file changed

+1
-1
lines changed

javascript2/week2/inclass/ex2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const filterListings = (listings, filter) => {
6868
const filterFunctions = {
6969
type: listing => listing.type.toLowerCase() === filter.type.toLowerCase(),
7070
// next line is a bit more complicated, but it works
71-
// it checks if the filter.facilities array includes any of the listing.facilities
71+
// it checks if every element in filter.facilities is included in listing.facilities
7272
// for filter.facilities.every see:
7373
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/every
7474
facilities: listing => filter.facilities.every(facility => {

0 commit comments

Comments
 (0)