wip
This commit is contained in:
parent
afd78c3b3e
commit
29d20b2273
25 changed files with 369 additions and 469 deletions
5
util.js
5
util.js
|
|
@ -22,6 +22,11 @@ export function deepEqual(a, b) {
|
|||
return true;
|
||||
}
|
||||
|
||||
// zip two arrays
|
||||
export function zip(a, b) {
|
||||
return a.map((k, i) => [k, b[i]]);
|
||||
}
|
||||
|
||||
export class DefaultMap {
|
||||
constructor(defaultValue, ...rest) {
|
||||
this.defaultValue = defaultValue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue