Socket
Socket
Sign inDemoInstall

findpattern

Package Overview
Dependencies
0
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.44 to 0.0.45

2

package.json
{
"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 );
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc