Checks if the given searchItem appears in the listItem(s), if yes, true is returned.

Examples

  • inList("ene", "mene", "those", "ene") → true
  • inList("ene", "mene", "those", "gene") → false
  • inList("ene", ["mene", "ene"]) → true