observ-value

1.0.0 • Public • Published

observ-value Build Status

Get the value of an observable via a single interface

Install

$ npm install --save observ-value

Usage

observ-value is designed to let you easily write functions that can take both observables themselves as well as the copies they return/emit.

var value = require('observ-value')
var Observ = require('observ')
 
var name = Observ('Ben')
 
value(name)
//=> Ben
 
value(name())
//=> Ben

API

value(input) -> any

input

Required
Type: any

Either an observable or a copy emitted by the observable.

License

MIT © Ben Drucker

Readme

Keywords

Package Sidebar

Install

npm i observ-value

Weekly Downloads

27

Version

1.0.0

License

MIT

Last publish

Collaborators

  • bendrucker