I'm playing with a Set implementation in typescript. I want it to adopt the interface of set, but with some differences, I seem to have a problem with: entries() however:
I have implemented next() on my object, which returns either:
{
value: elementAt(index),
done: false;
}
or
{
value: undefined,
done: true
}
but this does not work for
entries() : IterableIterator<[T, T]>
and I can't seem to find any references for how to do this. Can someone help out here? My first thought was that the value of value has to be different but so far nothing i have tried has worked.