Travis build: 1060 [cron]

This commit is contained in:
30secondsofcode
2019-03-16 15:17:57 +00:00
parent 4f1d5892e8
commit e5de2db600
15 changed files with 62 additions and 55 deletions

View File

@ -519,7 +519,7 @@ Calculates the [Levenshtein distance](https://en.wikipedia.org/wiki/Levenshtein_
Calculates the number of changes (substitutions, deletions or additions) required to convert `string1` to `string2`.
Can also be used to compare two strings as shown in the second example.
``` js
```js
const levenshteinDistance = (string1, string2) => {
if (string1.length === 0) return string2.length;
if (string2.length === 0) return string1.length;