You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
307 B

4 years ago
  1. import add from "./add.js";
  2. /**
  3. * Decrements 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} n - 1
  12. * @see R.inc
  13. * @example
  14. *
  15. * R.dec(42); //=> 41
  16. */
  17. var dec =
  18. /*#__PURE__*/
  19. add(-1);
  20. export default dec;