/** * @module 1-liners/last * * @description * * Returns the last item of `array`. * * @example * * const last = require('1-liners/last'); * * last([1, 2, 3]); // => 3 * */ "use strict"; exports.__esModule = true; exports["default"] = function (array) { return array[array.length - 1]; }; module.exports = exports["default"];