mirror of
https://github.com/swc-project/swc.git
synced 2024-12-23 05:32:09 +03:00
23 lines
402 B
TypeScript
23 lines
402 B
TypeScript
// Loaded from https://deno.land/x/ramda@v0.27.2/source/negate.js
|
|
|
|
|
|
import _curry1 from './internal/_curry1.js';
|
|
|
|
|
|
/**
|
|
* Negates its argument.
|
|
*
|
|
* @func
|
|
* @memberOf R
|
|
* @since v0.9.0
|
|
* @category Math
|
|
* @sig Number -> Number
|
|
* @param {Number} n
|
|
* @return {Number}
|
|
* @example
|
|
*
|
|
* R.negate(42); //=> -42
|
|
*/
|
|
var negate = _curry1(function negate(n) { return -n; });
|
|
export default negate;
|