last.js 181 B

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