most-last
Emit the last value of your streams
Last updated 8 years ago by hoichi .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install most-last 
SYNC missed versions from official npm registry.

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.

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 (x === 4) { // true
    ...
  }
})

Current Tags

  • 2.1.0                                ...           latest (8 years ago)
  • 2.1.0                                ...           stable (8 years ago)

4 Versions

  • 2.1.0                                ...           8 years ago
  • 2.0.0                                ...           8 years ago
  • 1.0.1                                ...           8 years ago
  • 1.0.0                                ...           10 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 3
Last Day 0
Last Week 3
Last Month 1
Dependencies (2)
Dev Dependencies (13)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |