Exore utils
A collection of useful utilities that can be used in various parts of the project.
Installation
# With yarn
yarn add @exore/utils
# With npm
npm install @exore/utils
sum
Let's dive into an example of how to use the sum utility function:
// Import the sum function from the @exore/utils package
import { sum } from '@exore/utils';
// Call the sum function with two numbers
const result = sum(2, 3);
// Print the result to the console
console.log(result); // Output: 5
Parameters
The sum function takes two parameters:
- a (number): The first number to be added.
- b (number): The second number to be added.
Return Value
The sum function returns a number, which is the result of adding the two input numbers together.
License
MIT