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

arc-array

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arc-array - npm Package Compare versions

Comparing version 2.0.3 to 2.1.0

test/wrap.js

12

index.js

@@ -115,4 +115,16 @@ "use strict";

}
static wrap(_array){
if(is(_array,true) === 'ArcArray'){
return _array;
}
else if(is(_array) === 'array'){
return new ArcArray(..._array);
}
else{
throw new TypeError('Cannot wrap value, valid array expected');
}
}
}
module.exports = ArcArray;

2

package.json
{
"name": "arc-array",
"version": "2.0.3",
"version": "2.1.0",
"description": "An array convenience subclass",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -103,2 +103,5 @@ # arc-array [![Build Status](https://travis-ci.org/anyuzer/arc-array.svg?branch=master)](https://travis-ci.org/anyuzer/arc-array)

###ArcArray.wrap(array:Array)
Accept an array, and if it is already an ArcArray return the same object, otherwise create a new ArcArray utilizing the passed in array
##Testing

@@ -105,0 +108,0 @@ ```

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