extra-lists
Advanced tools
Comparing version 2.0.85 to 2.0.86
@@ -1,1 +0,13 @@ | ||
const Lists = require('extra-lists'); | ||
const lists = require('extra-lists'); | ||
var x = [['a', 'b', 'c', 'd', 'e'], [1, 2, 3, 4, 5]]; | ||
lists.filter(x, v => v % 2 === 1); | ||
var x = [['a', 'b', 'c', 'd'], [1, 2, -3, -4]]; | ||
lists.some(x, v => v > 10); | ||
var x = [['a', 'b', 'c', 'd'], [1, 2, -3, -4]]; | ||
lists.min(x); | ||
var x = [['a', 'b', 'c'], [1, 2, 3]]; | ||
[...lists.submaps(x)].map(a => [[...a[0]], [...a[1]]]); |
{ | ||
"name": "extra-lists", | ||
"version": "2.0.85", | ||
"description": "Standard utility methods for Lists.", | ||
"version": "2.0.86", | ||
"description": "Lists is a pair of key list and value list, with unique keys.", | ||
"main": "index.js", | ||
@@ -86,3 +86,4 @@ "module": "index.mjs", | ||
"value", | ||
"values" | ||
"values", | ||
"zip" | ||
], | ||
@@ -89,0 +90,0 @@ "repository": { |
@@ -51,3 +51,3 @@ [Lists] is a pair of key list and value list, with unique keys. [:running:] [:vhs:] [:package:] [:moon:] [:ledger:] | ||
|-----------------------|------- | ||
| [is] | Checks if value is entries. | ||
| [is] | Checks if value is lists. | ||
| [get] | Gets value at key. | ||
@@ -57,3 +57,3 @@ | [set] | Sets value at key. | ||
| [swap] | Exchanges two values. | ||
| [size] | Gets size of entries. | ||
| [size] | Gets size of lists. | ||
| | | ||
@@ -63,8 +63,8 @@ | [head] | Gets first entry. | ||
| [shift] | Removes first entry. | ||
| [fromLists] | Creates entries from lists. | ||
| [fromEntries] | Creates lists from entries. | ||
| | | ||
| [concat] | Appends entries from maps, preferring last. | ||
| [flat] | Flattens nested entries to given depth. | ||
| [chunk] | Breaks entries into chunks of given size. | ||
| [filterAt] | Gets entries with given keys. | ||
| [concat] | Appends entries from all lists. | ||
| [flat] | Flattens nested lists to given depth. | ||
| [chunk] | Breaks lists into chunks of given size. | ||
| [filterAt] | Gets lists with given keys. | ||
| | | ||
@@ -77,11 +77,11 @@ | [map] | Updates values based on map function. | ||
| [partition] | Segregates values by test result. | ||
| [cartesianProduct] | Lists cartesian product of entries. | ||
| [cartesianProduct] | Lists cartesian product of lists. | ||
| [some] | Checks if any value satisfies a test. | ||
| [zip] | Combines matching entries from maps. | ||
| [zip] | Combines matching entries from all lists. | ||
| | | ||
| [union] | Gives entries present in any entries. | ||
| [intersection] | Gives entries present in both entries. | ||
| [difference] | Gives entries not present in another. | ||
| [symmetricDifference] | Gives entries not present in both entries. | ||
| [isDisjoint] | Checks if entries have no common keys. | ||
| [union] | Gives lists present in any lists. | ||
| [intersection] | Gives entries present in both lists. | ||
| [difference] | Gives entries of lists not present in another. | ||
| [symmetricDifference] | Gives entries not present in both lists. | ||
| [isDisjoint] | Checks if lists have no common keys. | ||
| | | ||
@@ -91,6 +91,6 @@ | [key] | Picks an arbitrary key. | ||
| [entry] | Picks an arbitrary entry. | ||
| [submap] | Gives an arbitrary submap. | ||
| [submap] | Picks an arbitrary submap. | ||
| | | ||
| [isEmpty] | Checks if entries is empty. | ||
| [isEqual] | Checks if two maps are equal. | ||
| [isEmpty] | Checks if lists is empty. | ||
| [isEqual] | Checks if two lists are equal. | ||
| [compare] | Compares two entries. | ||
@@ -103,3 +103,3 @@ | [find] | Finds a value passing a test. | ||
[![nodef](https://merferry.glitch.me/card/extra-entries.svg)](https://nodef.github.io) | ||
[![nodef](https://merferry.glitch.me/card/extra-lists.svg)](https://nodef.github.io) | ||
@@ -112,1 +112,44 @@ [(1)]: https://www.youtube.com/watch?v=8O0Nt9qY_vo | ||
[:vhs:]: https://asciinema.org/a/340409 | ||
[is]: https://github.com/nodef/extra-lists/wiki/is | ||
[get]: https://github.com/nodef/extra-lists/wiki/get | ||
[set]: https://github.com/nodef/extra-lists/wiki/set | ||
[remove]: https://github.com/nodef/extra-lists/wiki/remove | ||
[swap]: https://github.com/nodef/extra-lists/wiki/swap | ||
[size]: https://github.com/nodef/extra-lists/wiki/size | ||
[head]: https://github.com/nodef/extra-lists/wiki/head | ||
[take]: https://github.com/nodef/extra-lists/wiki/take | ||
[shift]: https://github.com/nodef/extra-lists/wiki/shift | ||
[fromLists]: https://github.com/nodef/extra-lists/wiki/fromLists | ||
[concat]: https://github.com/nodef/extra-lists/wiki/concat | ||
[flat]: https://github.com/nodef/extra-lists/wiki/flat | ||
[chunk]: https://github.com/nodef/extra-lists/wiki/chunk | ||
[filterAt]: https://github.com/nodef/extra-lists/wiki/filterAt | ||
[map]: https://github.com/nodef/extra-lists/wiki/map | ||
[filter]: https://github.com/nodef/extra-lists/wiki/filter | ||
[reduce]: https://github.com/nodef/extra-lists/wiki/reduce | ||
[range]: https://github.com/nodef/extra-lists/wiki/range | ||
[count]: https://github.com/nodef/extra-lists/wiki/count | ||
[partition]: https://github.com/nodef/extra-lists/wiki/partition | ||
[cartesianProduct]: https://github.com/nodef/extra-lists/wiki/cartesianProduct | ||
[some]: https://github.com/nodef/extra-lists/wiki/some | ||
[zip]: https://github.com/nodef/extra-lists/wiki/zip | ||
[union]: https://github.com/nodef/extra-lists/wiki/union | ||
[intersection]: https://github.com/nodef/extra-lists/wiki/intersection | ||
[difference]: https://github.com/nodef/extra-lists/wiki/difference | ||
[symmetricDifference]: https://github.com/nodef/extra-lists/wiki/symmetricDifference | ||
[isDisjoint]: https://github.com/nodef/extra-lists/wiki/isDisjoint | ||
[key]: https://github.com/nodef/extra-lists/wiki/key | ||
[value]: https://github.com/nodef/extra-lists/wiki/value | ||
[entry]: https://github.com/nodef/extra-lists/wiki/entry | ||
[submap]: https://github.com/nodef/extra-lists/wiki/submap | ||
[isEmpty]: https://github.com/nodef/extra-lists/wiki/isEmpty | ||
[isEqual]: https://github.com/nodef/extra-lists/wiki/isEqual | ||
[compare]: https://github.com/nodef/extra-lists/wiki/compare | ||
[find]: https://github.com/nodef/extra-lists/wiki/find | ||
[search]: https://github.com/nodef/extra-lists/wiki/search | ||
[scanWhile]: https://github.com/nodef/extra-lists/wiki/scanWhile | ||
[:running:]: https://npm.runkit.com/extra-lists | ||
[:package:]: https://www.npmjs.com/package/extra-lists | ||
[:moon:]: https://www.npmjs.com/package/extra-lists.min | ||
[:ledger:]: https://unpkg.com/extra-lists/ | ||
[fromEntries]: https://github.com/nodef/extra-lists/wiki/fromEntries |
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
101318
3752
149