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

oow

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oow - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

.idea/misc.xml

15

index.js

@@ -1,2 +0,2 @@

Collection = {
const Collection = {
isEmpty() { return this.length === 0; },

@@ -6,2 +6,10 @@ notEmpty() { return !this.isEmpty(); },

last() { return this[this.length-1]; },
any(predicate) {
for (let elem in this)
if (predicate(this[elem])) return true;
return false;
},
all(predicate) {
return !this.any(elem => !predicate(elem));
}
};

@@ -15,4 +23,5 @@

Object.keys(Collection).forEach(function (methodName) {
Array.prototype[methodName] = Collection[methodName];
String.prototype[methodName] = Collection[methodName];
[Array.prototype, String.prototype].forEach(function (proto) {
Object.defineProperty(proto, methodName, { value: Collection[methodName] });
});
});

4

package.json
{
"name": "oow",
"version": "1.2.0",
"version": "1.3.0",
"description": "Extension methods that should exist in JS core by default",

@@ -12,3 +12,3 @@ "homepage": "https://github.com/ngarbezza/oow",

"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "node tests.js"
},

@@ -15,0 +15,0 @@ "keywords": [

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