Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

async-add-numbers

1.0.1 • Public • Published

async-add-numbers

Usage

Installation: npm i --save async-add-numbers

const addNumbers = require('async-add-numbers')
 
addNumbers(1, 2)
  .then(answer => console.log(answer)); // 3
 
addNumbers(-1, -2)
  .then(answer => console.log(answer)); // -3
  
addNumbers("a", -1)
  .then(answer => console.log(answer))
  .catch(error => console.error(error)); // Either 'a' or 'b' is not a number
Be sure to check out our even more useful REST API at nmbr.dev

Install

npm i async-add-numbers

DownloadsWeekly Downloads

7

Version

1.0.1

License

AGPL-3.0-only

Unpacked Size

1.96 kB

Total Files

4

Homepage

nmbr.dev/

Last publish

Collaborators

  • avatar