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

as-array

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

as-array - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

2

index.js

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

var isArgs = require('is-args');
var isArgs = require('lodash.isarguments');

@@ -3,0 +3,0 @@ module.exports = function (data) {

{
"name": "as-array",
"version": "0.1.1",
"version": "0.1.2",
"description": "Make any value an array",

@@ -24,3 +24,3 @@ "main": "index.js",

"dependencies": {
"is-args": "0.0.1"
"lodash.isarguments": "2.4.x"
},

@@ -27,0 +27,0 @@ "devDependencies": {

@@ -21,3 +21,3 @@ var asArray = require('../');

test('converts arguments variable into array', function (t) {
test('converts arguments variable with numbers into array', function (t) {
function tester () {

@@ -29,2 +29,12 @@ t.deepEqual(asArray(arguments), [1,2], 'converted to array');

tester(1, 2);
});
});
test('converts arguments variable with strings into array', function (t) {
function tester () {
t.deepEqual(asArray(arguments), ['arg1', 'arg2'], 'converted to array');
t.end();
};
tester('arg1', 'arg2');
});
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