New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

webox-z

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webox-z - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

13

index.js

@@ -54,11 +54,12 @@ /* *

IO.array = {
exit : false,
i : zero,
contain : function (search) { return this.indexOf (search) > unknown; },
each : function (action) { for (var i = zero; i < this.length; i++) action (this.i = i, this [i]); },
each : function (action) { var tmp; for (var i = zero; i < this.length; i++) { if (this.exit) break; tmp = action (this.i = i, this [i]); } this.exit = false; return tmp; },
first : function (value) { if (this.length) for (var i = zero; i < this.length; i++) return this [i]; return value; },
last : function (value) { if (this.length) for (var i = zero; i < this.length; i++) value = this [i]; return value; },
is_first : function () { if (this.i === zero) return true; return false; },
is_last : function () { if (this.i === (this.length - one)) return true; return false; },
first : function (value) { if (this.length) return this.each (function (i, value) { if (this.is_first ()) return value; }); return value; },
last : function (value) { if (this.length) return this.each (function (i, value) { if (this.is_last ()) return value; }); return value; },
__first : function (value) { if (this.length) for (var i = zero; i < this.length; i++) return this [i]; return value; },
__last : function (value) { if (this.length) for (var i = zero; i < this.length; i++) value = this [i]; return value; },
__first : function () { return this.each (function (i, value) { if (this.is_first ()) { this.exit = true; return value; } }.bind (this)); },
__last : function () { return this.each (function (i, value) { if (this.is_last ()) { this.exit = true; return value; } }.bind (this)); },
__ : function () {}

@@ -75,3 +76,3 @@ }

replace : function (search, replacement) { return this.replace (search, replacement); },
delete : function (search) { return this.replace (new RegExp (search, "gi"), ""); },
delete : function (search, r) { return this.replace (new RegExp (search, (r || "gi")), ""); },
repeat : function (count) { var tmp = ""; for (var i = zero; i < count; i++) tmp += this; return tmp; },

@@ -78,0 +79,0 @@ explode : function (search) { var tmp = this.split (search); if (tmp.length <= one) return []; return tmp; },

@@ -7,5 +7,5 @@ {

},
"version": "0.0.2",
"version": "0.0.3",
"main": "index.js",
"license": "MIT"
}
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