How to use the negate function from ramda

Find comprehensive JavaScript ramda.negate code examples handpicked from public code repositorys.

3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
 * @sig Number -> Number
 * @param {Number} n
 * @return {Number}
 * @example
 *
 *      R.negate(42); //=> -42
 */
var negate = _curry1(function negate(n) {
    return -n;
});
fork icon0
star icon0
watch icon0

+ 17 other calls in file

Other functions in ramda

Sorted by popularity

function icon

ramda.clone is the most popular function in ramda (30311 examples)