arguments-extended
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -1,3 +0,3 @@ | ||
/*! arguments-extended - v0.0.2 - 2013-06-05 | ||
/*! arguments-extended - v0.0.3 - 2013-06-06 | ||
* Copyright (c) 2013 Doug Martin; Licensed MIT */ | ||
(function(){"use strict";function e(e,t){function n(e,t){if(!d(e))throw new TypeError("args must be an Arguments object");return t=t||0,r.call(e,t)}var r=Array.prototype.slice,d=t.isArguments;return e.define(d,{toArray:n}).expose({argsToArray:n})}"undefined"!=typeof exports?"undefined"!=typeof module&&module.exports&&(module.exports=e(require("extended"),require("is-extended"))):"function"==typeof define&&define.amd?define(["extended","is-extended"],function(t,n){return e(t,n)}):this.argumentsExtended=e(this.extended,this.isExtended)}).call(this); | ||
(function(){"use strict";function e(e,t){function n(e,t){var n=-1,r=0,d=e.length,i=[];for(t=t||0,n+=t;d>++n;)i[r++]=e[n];return i}var r=(Array.prototype.slice,t.isArguments);return e.define(r,{toArray:n}).expose({argsToArray:n})}"undefined"!=typeof exports?"undefined"!=typeof module&&module.exports&&(module.exports=e(require("extended"),require("is-extended"))):"function"==typeof define&&define.amd?define(["extended","is-extended"],function(t,n){return e(t,n)}):this.argumentsExtended=e(this.extended,this.isExtended)}).call(this); |
10
index.js
@@ -10,7 +10,9 @@ (function () { | ||
function argsToArray(args, slice) { | ||
if (!isArguments(args)) { | ||
throw new TypeError("args must be an Arguments object"); | ||
var i = -1, j = 0, l = args.length, ret = []; | ||
slice = slice || 0; | ||
i += slice; | ||
while (++i < l) { | ||
ret[j++] = args[i]; | ||
} | ||
slice = slice || 0; | ||
return pSlice.call(args, slice); | ||
return ret; | ||
} | ||
@@ -17,0 +19,0 @@ |
{ | ||
"name": "arguments-extended", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Utilities for working with arguments object", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
124
10605