code: function basicParser(condition, str) {
      let result = [];
  
      for (let i = 0; i < str.length; ++i) {
          if (condition(str[i])) {
              result.push(str[i]);
          }
      }
  
      return result;
  }
docs: returns an array of all characters in a string that fulfill a condition