const takeRight = (arr, n = 1) => arr.slice(arr.length - n, arr.length);