Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andrew--r/sum-strings
https://github.com/andrew--r/sum-strings
Last synced: about 6 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/andrew--r/sum-strings
- Owner: andrew--r
- Created: 2016-11-12T20:50:34.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-13T19:34:06.000Z (about 8 years ago)
- Last Synced: 2024-11-16T05:20:27.908Z (3 days ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/andrew--r/sum-strings.svg?branch=master)](https://travis-ci.org/andrew--r/sum-strings)
# sum-strings
Sum strings like integers without using integers. Yep, that's a bit crazy.
```javascript
const sumStrings = require('sum-strings');sumStrings('3', '14'); // -> 17
sumStrings('12999', '1'); // -> 13000
sumStrings('3000', '5000'); // -> 8000
```