Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

readme.md 872B

1234567891011121314151617181920212223242526272829
  1. <a href="http://promises-aplus.github.com/promises-spec"><img src="http://promises-aplus.github.com/promises-spec/assets/logo-small.png" align="right" /></a>
  2. # is-promise
  3. Test whether an object looks like a promises-a+ promise
  4. [![Build Status](https://img.shields.io/travis/then/is-promise/master.svg)](https://travis-ci.org/then/is-promise)
  5. [![Dependency Status](https://img.shields.io/gemnasium/then/is-promise.svg)](https://gemnasium.com/then/is-promise)
  6. [![NPM version](https://img.shields.io/npm/v/is-promise.svg)](https://www.npmjs.org/package/is-promise)
  7. ## Installation
  8. $ npm install is-promise
  9. You can also use it client side via npm.
  10. ## API
  11. ```javascript
  12. var isPromise = require('is-promise');
  13. isPromise({then:function () {...}});//=>true
  14. isPromise(null);//=>false
  15. isPromise({});//=>false
  16. isPromise({then: true})//=>false
  17. ```
  18. ## License
  19. MIT