title: Need help creating a function for certain task
body: <p>so i'm gonna create an app that generates recipes by reading the ingredients you entered in the app. 
  For example, (i'm thinking of using arrays to do this) let's say the user pushed the buttons for these ingredients: [eggs , flour, sugar, baking soda]</p>
  
  <p>and there are 3 recipes available in the app:</p>
  
  <p>A - requires  eggs, flour, sugar. 
      B - requires  eggs, flour.
        C - requires  baking soda, tomato sauce.</p>
  
  <p>The function i would like to create would choose recipes A and B because the user has the required ingredients, unlike for recipe C, where he is missing the sauce.</p>
  
  <p>I think the way of doing it is by comparing the ingredients list and recipe lists, and if both have the same items or the recipe has less ingredients, than the app displays the recipes.<br>
  What function can I use to go about doing this?</p>