findpattern
Advanced tools
Comparing version 0.0.44 to 0.0.45
{ | ||
"name": "findpattern", | ||
"version": "0.0.44", | ||
"version": "0.0.45", | ||
"description": "I am tired of this s**t", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -10,3 +10,3 @@ /*! | ||
const findPattern = ( word ) => { | ||
window.findPattern = ( word ) => { | ||
@@ -30,3 +30,2 @@ let | ||
window.findpattern( word ); | ||
/***********************************************************************/ | ||
// MY WAY | ||
const isSameA = ( a,b ) => { | ||
window.isSameA = ( a,b ) => { | ||
var first = a.split('').sort().join(''); | ||
@@ -10,3 +10,2 @@ var second = b.split('').sort().join(''); | ||
window.isSameA = isSameA( a,b ); | ||
@@ -16,3 +15,3 @@ /***********************************************************************/ | ||
// CHECK IF ARE PALINDROME | ||
const isSameB = ( a,b ) => { | ||
window.isSameB = ( a,b ) => { | ||
var re = /[\W_]/g; | ||
@@ -24,2 +23,1 @@ var lowStr = b.toLowerCase().replace(re, ''); | ||
window.isSameB = isSameB( a,b ); |
11910
122