kharandziuk
kharandziuk

Reputation: 12900

Repeat value with highland.js

I need to create a stream which repeats some value. With bacon I can do this with repeat primitive

Upvotes: 0

Views: 44

Answers (1)

kharandziuk
kharandziuk

Reputation: 12900

I finished with the code below:

const H = require('highland')

H((push, next) => {
  push(null, 'value to repeat')
  next()
})

Upvotes: 1

Related Questions