Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

collect.js

Package Overview
Dependencies
Maintainers
1
Versions
149
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

collect.js - npm Package Compare versions

Comparing version 4.0.4 to 4.0.5

5

.eslintrc.js

@@ -10,4 +10,5 @@ module.exports = {

rules: {
'no-console': 0
}
'no-console': 0,
'newline-before-return': 2,
},
};

1

dist/methods/dump.js

@@ -5,3 +5,4 @@ 'use strict';

console.log(this);
return this;
};

@@ -32,2 +32,3 @@ 'use strict';

});
return result;

@@ -47,2 +48,3 @@ }

}
return result;

@@ -49,0 +51,0 @@ }

@@ -15,3 +15,4 @@ 'use strict';

var keys = Object.keys(this.items);
return this.items[keys[keys.length - 1]];
};

@@ -6,3 +6,4 @@ 'use strict';

delete this.items[key];
return value;
};

@@ -11,3 +11,4 @@ 'use strict';

delete this.items[key];
return value;
};

@@ -10,2 +10,3 @@ 'use strict';

if (valueOrFunction(a) > valueOrFunction(b)) return 1;
return 0;

@@ -17,2 +18,3 @@ });

if (a[valueOrFunction] > b[valueOrFunction]) return 1;
return 0;

@@ -19,0 +21,0 @@ });

@@ -5,3 +5,4 @@ 'use strict';

fn(this);
return this;
};
{
"name": "collect.js",
"version": "4.0.4",
"version": "4.0.5",
"description": "Convenient and dependency free wrapper for working with arrays and objects.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -5,3 +5,4 @@ 'use strict';

console.log(this);
return this;
};

@@ -31,2 +31,3 @@ 'use strict';

});
return result;

@@ -46,2 +47,3 @@ }

}
return result;

@@ -48,0 +50,0 @@ }

@@ -15,3 +15,4 @@ 'use strict';

const keys = Object.keys(this.items);
return this.items[keys[keys.length - 1]];
};

@@ -6,3 +6,4 @@ 'use strict';

delete this.items[key];
return value;
};

@@ -11,3 +11,4 @@ 'use strict';

delete this.items[key];
return value;
};

@@ -10,2 +10,3 @@ 'use strict';

if (valueOrFunction(a) > valueOrFunction(b)) return 1;
return 0;

@@ -17,2 +18,3 @@ });

if (a[valueOrFunction] > b[valueOrFunction]) return 1;
return 0;

@@ -19,0 +21,0 @@ });

@@ -5,3 +5,4 @@ 'use strict';

fn(this);
return this;
};
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc