--- title: Tokenize a string with escaping id: 594faaab4e2a8626833e9c3d challengeType: 5 videoUrl: '' localeTitle: '' --- ## Description undefined ## Instructions undefined ## Tests
```yml tests: - text: '' testString: 'assert(typeof tokenize === "function", "tokenize is a function.");' - text: '' testString: 'assert(typeof tokenize("a", "b", "c") === "object", "tokenize should return an array.");' - text: '' testString: 'assert.deepEqual(tokenize(testStr1, "|", "^"), res1, "tokenize("one^|uno||three^^^^|four^^^|^cuatro|", "|", "^") should return ["one|uno", "", "three^^", "four^|cuatro", ""]");' - text: '' testString: 'assert.deepEqual(tokenize(testStr2, "&", "@"), res2, "tokenize("a@&bcd&ef&&@@hi", "&", "@") should return ["a&bcd", "ef", "", "@hi"]");' ```
## Challenge Seed
```js function tokenize(str, esc, sep) { return true; } ```
### After Test
```js console.info('after the test'); ```
## Solution
```js // solution required ```