extra-lists
Advanced tools
Comparing version 2.1.1 to 2.1.2
{ | ||
"name": "extra-lists", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "Lists is a pair of key list and value list, with unique keys.", | ||
@@ -51,3 +51,3 @@ "main": "index.js", | ||
"isKey", | ||
"isSubmap", | ||
"isSubset", | ||
"isValue", | ||
@@ -78,4 +78,4 @@ "join", | ||
"some", | ||
"submap", | ||
"submaps", | ||
"subset", | ||
"subsets", | ||
"swap", | ||
@@ -82,0 +82,0 @@ "symmetricDifference", |
@@ -34,3 +34,3 @@ [Lists] is a pair of key list and value list, with unique keys. [:running:] [:vhs:] [:package:] [:moon:] [:ledger:] | ||
var x = [['a', 'b', 'c'], [1, 2, 3]]; | ||
[...lists.submaps(x)].map(a => [[...a[0]], [...a[1]]]); | ||
[...lists.subsets(x)].map(a => [[...a[0]], [...a[1]]]); | ||
// [ | ||
@@ -88,3 +88,3 @@ // [ [], [] ], | ||
| [entry] | Picks an arbitrary entry. | ||
| [submap] | Picks an arbitrary submap. | ||
| [subset] | Picks an arbitrary submap. | ||
| | | ||
@@ -138,3 +138,3 @@ | [isEmpty] | Checks if lists is empty. | ||
[entry]: https://github.com/nodef/extra-lists/wiki/entry | ||
[submap]: https://github.com/nodef/extra-lists/wiki/submap | ||
[subset]: https://github.com/nodef/extra-lists/wiki/subset | ||
[isEmpty]: https://github.com/nodef/extra-lists/wiki/isEmpty | ||
@@ -151,2 +151,2 @@ [isEqual]: https://github.com/nodef/extra-lists/wiki/isEqual | ||
[fromEntries]: https://github.com/nodef/extra-lists/wiki/fromEntries | ||
[:vhs:]: https://asciinema.org/a/340743 | ||
[:vhs:]: https://asciinema.org/a/341134 |
67851
7
2298