main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
349 bytes
|
Line | |
---|
1 | import _curry1 from "./internal/_curry1.js";
|
---|
2 | /**
|
---|
3 | * Negates its argument.
|
---|
4 | *
|
---|
5 | * @func
|
---|
6 | * @memberOf R
|
---|
7 | * @since v0.9.0
|
---|
8 | * @category Math
|
---|
9 | * @sig Number -> Number
|
---|
10 | * @param {Number} n
|
---|
11 | * @return {Number}
|
---|
12 | * @example
|
---|
13 | *
|
---|
14 | * R.negate(42); //=> -42
|
---|
15 | */
|
---|
16 |
|
---|
17 | var negate =
|
---|
18 | /*#__PURE__*/
|
---|
19 | _curry1(function negate(n) {
|
---|
20 | return -n;
|
---|
21 | });
|
---|
22 |
|
---|
23 | export default negate; |
---|
Note:
See
TracBrowser
for help on using the repository browser.