Convert one value from an (async)iterator into another.
Example
import map from 'it-map'// This can also be an iterator, generator, etcconst values = [0, 1, 2, 3, 4]const result = map(values, (val, index) => val++)console.info(result) // [1, 2, 3, 4, 5]
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.