mirror of
https://github.com/swc-project/swc.git
synced 2024-12-26 23:27:56 +03:00
24 lines
359 B
TypeScript
24 lines
359 B
TypeScript
|
// Loaded from https://deno.land/x/ramda@v0.27.2/source/inc.js
|
||
|
|
||
|
|
||
|
import add from './add.js';
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Increments its argument.
|
||
|
*
|
||
|
* @func
|
||
|
* @memberOf R
|
||
|
* @since v0.9.0
|
||
|
* @category Math
|
||
|
* @sig Number -> Number
|
||
|
* @param {Number} n
|
||
|
* @return {Number} n + 1
|
||
|
* @see R.dec
|
||
|
* @example
|
||
|
*
|
||
|
* R.inc(42); //=> 43
|
||
|
*/
|
||
|
var inc = add(1);
|
||
|
export default inc;
|