last.js 196 B

12345678
  1. "use strict";
  2. var value = require("../../object/valid-value");
  3. module.exports = function () {
  4. var self = String(value(this)), length = self.length;
  5. return length ? self[length - 1] : null;
  6. };