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

ethjs-util

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ethjs-util - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

4

CHANGELOG.md

@@ -0,1 +1,5 @@

# 0.0.3 -- added `some` property to arrayContainsArray
1. added `some` property to arrayContainsArray, allows some array in another
# 0.0.2 -- added isHexString and getKeys

@@ -2,0 +6,0 @@

3

package.json
{
"name": "ethjs-util",
"version": "0.0.2",
"version": "0.0.3",
"description": "A simple set of Ethereum JS utilties.",

@@ -59,2 +59,3 @@ "main": "./src/index.js",

"assert": "1.4.1",
"ethjs-filter": "0.0.1",
"utf8": "^2.1.2"

@@ -61,0 +62,0 @@ },

@@ -120,4 +120,4 @@ const assert = require('assert');

*/
function arrayContainsArray(superset, subset) {
return subset.every((value) => (superset.indexOf(value) >= 0));
function arrayContainsArray(superset, subset, some) {
return subset[Boolean(some) && 'some' || 'every']((value) => (superset.indexOf(value) >= 0));
}

@@ -124,0 +124,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