Wraps an iterable with the library's IEnumerable implementation.
IEnumerable
Type of elements within the source iterable.
source
The iterable to expose as an enumerable sequence.
An enumerable view over the given iterable.
The returned sequence defers enumeration of source until iterated.
const numbers = [1, 2, 3];const enumerable = from(numbers);console.log(enumerable.toArray()); // [1, 2, 3] Copy
const numbers = [1, 2, 3];const enumerable = from(numbers);console.log(enumerable.toArray()); // [1, 2, 3]
Wraps an iterable with the library's
IEnumerableimplementation.