UNPKG

ramda-extension

Version:

Helpful functions built on top of the mighty Ramda

16 lines (15 loc) 244 B
import { nthArg } from 'ramda'; /** * Takes last argument from the arguments * * @func * @category Function * * @example * * R_.lastArg('a', 'b', 'c') // c * * */ var lastArg = /*#__PURE__*/nthArg(-1); export default lastArg;