mirror of
https://github.com/swc-project/swc.git
synced 2024-12-26 15:12:08 +03:00
bbaf619f63
swc_bundler: - [x] Fix wrapped esms. (denoland/deno#9307) - [x] Make test secure.
28 lines
498 B
TypeScript
28 lines
498 B
TypeScript
// Loaded from https://deno.land/x/ramda@v0.27.2/source/add.js
|
|
|
|
|
|
import _curry2 from './internal/_curry2.js';
|
|
|
|
|
|
/**
|
|
* Adds two values.
|
|
*
|
|
* @func
|
|
* @memberOf R
|
|
* @since v0.1.0
|
|
* @category Math
|
|
* @sig Number -> Number -> Number
|
|
* @param {Number} a
|
|
* @param {Number} b
|
|
* @return {Number}
|
|
* @see R.subtract
|
|
* @example
|
|
*
|
|
* R.add(2, 3); //=> 5
|
|
* R.add(7)(10); //=> 17
|
|
*/
|
|
var add = _curry2(function add(a, b) {
|
|
return Number(a) + Number(b);
|
|
});
|
|
export default add;
|