0.2.2 • Published 7 years ago

sum-two-largest-numbers v0.2.2

Weekly downloads
1
License
MIT
Repository
bitbucket
Last release
7 years ago

Sum the Largest 2 Numbers in an Array

This package accepts any array of numbers and sums the highest 2 values.

Installation

Once you've cloned the repository, just run yarn.

Usage

Usage in TypeScript or JavaScript is essentially the same, though your import/require syntax may vary.

TypeScript

import * as sumTwoLargest from 'sum-two-largest-numbers';

sumTwoLargest([5, 3, 10, 8]);

>> 18

Javascript

sumTwoLargest = require('sum-two-largest-numbers');

sumTwoLargest([5, 3, 10, 8]);

>> 18

Testing

To run the tests, just run yarn tests or npm run tests.

Contributing

If you feel like suggesting improvements, I'd happily accept and review pull requests - Just make sure the linter is happy and tests are passing.

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.9

7 years ago

0.1.8

7 years ago

0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago