Socket
Socket
Sign inDemoInstall

pedash

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pedash - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

13

index.js
module.exports.getAmount = function(arr) {
return arr.reduce((total, item) => {
total[item] = (total[item] || 0) + 1;
return arr.reduce((total, currentItem) => {
total[currentItem] = (total[currentItem] || 0) + 1;
return total;

@@ -13,1 +13,10 @@ }, {});

};
module.exports.getLongest = function(arr) {
return arr.reduce((longestItemSoFar, currItem) => {
if (currItem.length > longestItemSoFar.length) {
return currItem;
}
return longestItemSoFar;
});
};

2

package.json
{
"name": "pedash",
"version": "0.0.3",
"version": "0.0.4",
"description": "A lodash-like javascript helper -- for dummies",

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

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