Https://www.codecademy.com/courses/asynchronous-javascript/lessons/promises/exercises/avoiding-common-mistakes

const checkInventory = (order) => {
return new Promise ((resolve, reject) => {
setTimeout(()=> {
const itemsArr = order.items;
let inStock = itemsArr.every(item => store[item[0]].inventory >= item[1]);
…(etc)

Hi there,
This is actually a question about the asynch prep that I’m doing before moving on to Node.js. Can someone please explain the logic behind this .every() method on the itemsArr array. I understand the .every() method checks that every item in the array meets a certain condition and then returns true or false but I just don’t quite get how this is confirming that there are enough items in stock, in this example. Thanks!