most-last
TypeScript icon, indicating that this package has built-in type declarations

2.1.0 • Public • Published

most-last

Wait for your last event to play

Last will wait until your stream ends, and play the very last event that has occurred.

Warning: v2.x is only compatible with @most/core. For the old mostjs, use most-last v1.0.

Get it

npm install --save most-last

Usage

import { iterate, take } from 'most'
import { last } from 'most-last'
 
const stream = last(take(5, iterate(x => x + 1, 0)))
 
stream.observe(function (x) {
  if (=== 4) { // true
    ...
  }
})
 

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.1.0
    0
    • latest
  • 2.1.0
    0
    • stable

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.1.0
    0
  • 2.0.0
    0
  • 1.0.1
    33
  • 1.0.0
    231

Package Sidebar

Install

npm i most-last

Weekly Downloads

230

Version

2.1.0

License

MIT

Unpacked Size

7.93 kB

Total Files

9

Last publish

Collaborators

  • hoichi
  • tylors