/* */ 
var baseSlice = require('./internal/baseSlice'),
    toInteger = require('./toInteger');
function takeRight(array, n, guard) {
  var length = array ? array.length : 0;
  if (!length) {
    return [];
  }
  n = (guard || n === undefined) ? 1 : toInteger(n);
  n = length - n;
  return baseSlice(array, n < 0 ? 0 : n, length);
}
module.exports = takeRight;
