BigIntOrderedMap: remove lodash dependency

This commit is contained in:
Liam Fitzgerald 2021-04-21 16:39:35 +10:00
parent ec7c456b19
commit eb8d9b3f60
No known key found for this signature in database
GPG Key ID: D390E12C61D1CFFB

View File

@ -1,4 +1,3 @@
import _ from 'lodash';
import { immerable } from 'immer';
import bigInt, { BigInteger } from "big-integer";
@ -17,7 +16,7 @@ export default class BigIntOrderedMap<V> implements Iterable<[BigInteger, V]> {
[immerable] = true;
constructor(items: [BigInteger, V][] = []) {
_.forEach(items, ([key, val]) => {
items.forEach(([key, val]) => {
this.set(key, val);
});
this.generateCachedIter();