Travis build: 1751 [cron]

This commit is contained in:
30secondsofcode
2018-02-26 20:28:33 +00:00
parent 4308383eeb
commit f4bd0efcc3
8 changed files with 2062 additions and 1920 deletions

View File

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