mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 14:43:33 +03:00
bbaf619f63
swc_bundler: - [x] Fix wrapped esms. (denoland/deno#9307) - [x] Make test secure.
24 lines
360 B
TypeScript
24 lines
360 B
TypeScript
// Loaded from https://deno.land/x/ramda@v0.27.2/source/dec.js
|
|
|
|
|
|
import add from './add.js';
|
|
|
|
|
|
/**
|
|
* Decrements its argument.
|
|
*
|
|
* @func
|
|
* @memberOf R
|
|
* @since v0.9.0
|
|
* @category Math
|
|
* @sig Number -> Number
|
|
* @param {Number} n
|
|
* @return {Number} n - 1
|
|
* @see R.inc
|
|
* @example
|
|
*
|
|
* R.dec(42); //=> 41
|
|
*/
|
|
var dec = add(-1);
|
|
export default dec;
|