ethjs-util
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -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 @@ |
{ | ||
"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 @@ |
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
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
18631
3
+ Addedethjs-filter@0.0.1
+ Addedethjs-filter@0.0.1(transitive)