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

args-to-arr

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

args-to-arr - npm Package Compare versions

Comparing version 1.3.10 to 1.3.11

5

CHANGELOG.md

@@ -0,1 +1,6 @@

# v1.3.11 (01-06-2019)
* description changed
* dependencies updated
# v1.3.10 (31-05-2019)

@@ -2,0 +7,0 @@

9

dist/args-to-arr.cjs.js

@@ -18,9 +18,10 @@ 'use strict';

var params = new Array(args.length - start);
var len = args.length;
var result = new Array(len - start);
for (var index = start, len = args.length; index < len; index++) {
params[index - start] = args[index];
for (var i = start; i < len; i++) {
result[i - start] = args[i];
}
return params;
return result;
}

@@ -27,0 +28,0 @@

@@ -16,9 +16,10 @@ import isArrayLike from 'is-array-like';

var params = new Array(args.length - start);
var len = args.length;
var result = new Array(len - start);
for (var index = start, len = args.length; index < len; index++) {
params[index - start] = args[index];
for (var i = start; i < len; i++) {
result[i - start] = args[i];
}
return params;
return result;
}

@@ -25,0 +26,0 @@

@@ -106,9 +106,10 @@ (function (global, factory) {

var params = new Array(args.length - start);
var len = args.length;
var result = new Array(len - start);
for (var index = start, len = args.length; index < len; index++) {
params[index - start] = args[index];
for (var i = start; i < len; i++) {
result[i - start] = args[i];
}
return params;
return result;
}

@@ -115,0 +116,0 @@

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

var e,n;e=this,n=function(){"use strict";var e=Array.isArray,n=Object.prototype.toString,t=e||function(e){return!!e&&"[object Array]"==n.call(e)},r=function(e){var n=o.call(e);return"[object Function]"===n||"function"==typeof e&&"[object RegExp]"!==n||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)},o=Object.prototype.toString,i=function(e){if(!e)return!1;if(t(e))return!0;if(r(e)||function(e){if(null==e)return!1;var n=Object(e);return n===n.window}(e))return!1;var n="length"in(e=Object(e))&&e.length;return!(1!==e.nodeType||!n)||(0===n||"number"==typeof n&&n>0&&n-1 in e)};return function(e,n){if(!i(e))throw new TypeError(e+" can't be converted to array.");if(null==n&&(n=0),"number"!=typeof n)throw new TypeError(n+" is not a number.");for(var t=new Array(e.length-n),r=n,o=e.length;r<o;r++)t[r-n]=e[r];return t}},"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e=e||self).toArray=n();
var e,n;e=this,n=function(){"use strict";var e=Array.isArray,n=Object.prototype.toString,r=e||function(e){return!!e&&"[object Array]"==n.call(e)},t=function(e){var n=o.call(e);return"[object Function]"===n||"function"==typeof e&&"[object RegExp]"!==n||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)},o=Object.prototype.toString,i=function(e){if(!e)return!1;if(r(e))return!0;if(t(e)||function(e){if(null==e)return!1;var n=Object(e);return n===n.window}(e))return!1;var n="length"in(e=Object(e))&&e.length;return!(1!==e.nodeType||!n)||(0===n||"number"==typeof n&&n>0&&n-1 in e)};return function(e,n){if(!i(e))throw new TypeError(e+" can't be converted to array.");if(null==n&&(n=0),"number"!=typeof n)throw new TypeError(n+" is not a number.");for(var r=e.length,t=new Array(r-n),o=n;o<r;o++)t[o-n]=e[o];return t}},"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e=e||self).toArray=n();
//# sourceMappingURL=args-to-arr.umd.min.js.map
{
"name": "args-to-arr",
"version": "1.3.10",
"description": "Arguments to array, the easy way",
"version": "1.3.11",
"description": "converts arguments or any other array-like object into an array starting from specific index.",
"main": "dist/args-to-arr.cjs.js",

@@ -11,5 +11,3 @@ "module": "dist/args-to-arr.es.js",

"equals": true,
"min": [
"browser"
]
"min": "browser"
},

@@ -24,2 +22,3 @@ "typings": "types/index.d.ts",

"convert",
"rest",
"slice"

@@ -45,7 +44,7 @@ ],

"@types/jest": "^24.0.13",
"@types/node": "^12.0.3",
"bundlib": "^0.3.2",
"@types/node": "^12.0.4",
"bundlib": "^0.4.1",
"eslint": "^5.16.0",
"jest": "^24.8.0",
"tslint": "^5.16.0",
"tslint": "^5.17.0",
"typescript": "^3.5.1"

@@ -52,0 +51,0 @@ },

@@ -5,4 +5,6 @@ # args-to-arr

Arguments to array, the easy way
Converts `arguments` or any other `array-like` object into an array starting from specific index.
*Inspired by how Typescript handles `...rest` arguments.*
## Install

@@ -9,0 +11,0 @@

import isArrayLike from "is-array-like";
function toArray<T>(args: ArrayLike<T>, start?: number): T[] {
function toArray<T>(args: ArrayLike<T>, start?: number | null): T[] {

@@ -17,9 +17,10 @@ if (!isArrayLike(args)) {

const params = new Array(args.length - start);
const len = args.length;
const result = new Array(len - start);
for (let index = start, len = args.length; index < len; index++) {
params[index - start] = args[index];
for (let i = start; i < len; i++) {
result[i - start] = args[i];
}
return params;
return result;

@@ -26,0 +27,0 @@ }

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

declare function toArray<T>(args: ArrayLike<T>, start?: number): T[];
declare function toArray<T>(args: ArrayLike<T>, start?: number | null): T[];
export = toArray;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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