You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
iterable must have an [@@iterator]() method and its return value must be an iterator. iterator must have an next() method and its return value must be an iteratorResult. iteratorResult is an object, it must have a boolean done property, and when done property is false, value property must be present.
In other words, if chai really say iterable, it should be possible to get iteratorResult!
It is difficult to obtain iteratorResult on the premise that there are no side effects. (Ex: queue, stack)
However, when calling [@@iterator]() it is very uncommon case that there are side effects other than for debugging purposes.
iterable
must have an[@@iterator]()
method and its return value must be aniterator
.iterator
must have annext()
method and its return value must be aniteratorResult
.iteratorResult
is an object, it must have a booleandone
property, and whendone
property is false,value
property must be present.In other words, if chai really say
iterable
, it should be possible to getiteratorResult
!It is difficult to obtain
iteratorResult
on the premise that there are no side effects. (Ex: queue, stack)However, when calling
[@@iterator]()
it is very uncommon case that there are side effects other than for debugging purposes.The text was updated successfully, but these errors were encountered: