Closed alex-kinokon closed 4 years ago
IxJS version: 2.5.3
Code to reproduce:
Ix.Iterable.from("Hello World")
Expected behavior: Returns an Iterable<string> of each character.
Iterable<string>
Actual behavior:
throw new TypeError('Input type not supported');
Additional information: Culprit is here:
function isIterable(x) { return exports.isObject(x) && exports.isFunction(x[Symbol.iterator]); }
ah yes. @mattpodwysocki any reason we're casting against to an object in this check? @glixlur in the meantime, you can pass the string's Iterator to Iterable.from().
Iterable.from()
IxJS version: 2.5.3
Code to reproduce:
Expected behavior: Returns an
Iterable<string>
of each character.Actual behavior:
Additional information: Culprit is here: