Travis build: 188 [cron]

This commit is contained in:
30secondsofcode
2018-08-03 19:51:50 +00:00
parent 0cd4e37f33
commit 8274aa87fe
9 changed files with 1627 additions and 1705 deletions

View File

@ -1,11 +1,5 @@
const isSimilar = (pattern, str) =>
[...str].reduce(
(matchIndex, char) =>
char.toLowerCase() === (pattern[matchIndex] || '').toLowerCase()
? matchIndex + 1
: matchIndex,
0
) === pattern.length
? true
: false;
[...str].reduce(
(matchIndex, char) => char.toLowerCase() === (pattern[matchIndex] || '').toLowerCase() ? matchIndex + 1 : matchIndex, 0
) === pattern.length ? true : false;
module.exports = isSimilar;