Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sadd

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sadd

Performs the addition of two numbers represented as strings, and returns the result represented as string

  • 1.0.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
8
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

Build Status

sadd

Performs the addition of two numbers represented as strings, and returns the result represented as string.

Useful when either number you must sum is bigger than the maximum integer that can be exactly represented and correctly compared. See Number.MAX_SAFE_INTEGER at MDN for an explanation.

API

var sadd = require('sadd');

sadd(str1, str2)

Returns the string representation of the sum of the numbers represented by str1 and str2.

sadd('123', '456');
//--> '579'

License

BSD 3-Clause

Copyright (c) Claudio Procida 2015

Keywords

FAQs

Package last updated on 23 Dec 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc