promise.obj
TypeScript icon, indicating that this package has built-in type declarations

0.3.1 • Public • Published

promise.obj

promise.obj / promise.props etc

Build Status Coverage Status npm version npm downloads npm license

Install

$ npm i -S promise.obj

Note

this is target ES5 environment

API

const pobj = require('promise.obj')

Example

const pobj = require('promise.obj')

const p = pobj({
  x: Promise.resolve('x'),
  y: Promise.resolve('y'),
  foo: 'foo',
  bar: 3,
  abc: null,
})

p.then(function(o) {
  o.x // 'x'
  o.y // 'y'
  o.foo // 'foo'
  o.bar // 3
  o.abc // null
})

See Also

Changelog

CHANGELOG.md

License

the MIT License http://magicdawn.mit-license.org

/promise.obj/

    Package Sidebar

    Install

    npm i promise.obj

    Weekly Downloads

    45

    Version

    0.3.1

    License

    MIT

    Unpacked Size

    4.96 kB

    Total Files

    6

    Last publish

    Collaborators

    • magicdawn