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" | ||
} |
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
171
8322
2
2
0
1