--- title: Zhang-Suen thinning algorithm id: 594810f028c0303b75339ad7 challengeType: 5 videoUrl: '' localeTitle: '' --- ## Description undefined ## Instructions undefined ## Tests
```yml tests: - text: '' testString: 'assert.equal(typeof thinImage, "function", "thinImage must be a function");' - text: '' testString: 'assert(Array.isArray(result), "thinImage must return an array");' - text: '' testString: 'assert.equal(typeof result[0], "string", "thinImage must return an array of strings");' - text: '' testString: 'assert.deepEqual(result, expected, "thinImage must return an array of strings");' ```
## Challenge Seed
```js const testImage = [ ' ', ' ################# ############# ', ' ################## ################ ', ' ################### ################## ', ' ######## ####### ################### ', ' ###### ####### ####### ###### ', ' ###### ####### ####### ', ' ################# ####### ', ' ################ ####### ', ' ################# ####### ', ' ###### ####### ####### ', ' ###### ####### ####### ', ' ###### ####### ####### ###### ', ' ######## ####### ################### ', ' ######## ####### ###### ################## ###### ', ' ######## ####### ###### ################ ###### ', ' ######## ####### ###### ############# ###### ', ' ']; function thinImage(image) { // Good luck! } ```
### After Test
```js console.info('after the test'); ```
## Solution
```js // solution required ```