--- id: 5d7925330918ae4a2f282e7e title: Part 012 challengeType: 0 isHidden: true --- ## Description
Use arrow function syntax to define a function `infixEval` which takes `str` and `regex` as arguments and returns `str.replace(regex, "")`.
## Instructions
## Tests
```yml tests: - text: See description above for instructions. testString: assert(/constinfixEval=\(str,regex\)=>str\.replace\(regex,['"]{2}\)/.test(code.replace(/\s/g, ''))); ```
## Challenge Seed
```html ```
### Before Test
```html Spreadsheet
```
### After Test
```html ```
## Solution
```html ```