Sitemap
Jul 20, 2024

const l = listener()

console.log(l.next("Hey"))

console.log(l.next("How are you?"))

console.log(l.next("Etc.."))

// Listening...

// Heard: How are you?

// // Heard: Etc..

just a small correction. the argument of the first next() call is always ignored

--

--