UNPKG

300 BJavaScriptView Raw
1import slice$ from './slice$';
2/**
3 * Gets values from middle.
4 * @param x an array (updated)
5 * @param i start index (0)
6 * @param n number of values (1)
7 * @returns x
8 */
9function middle$(x, i = 0, n = 1) {
10 return slice$(x, i, i + n);
11}
12export default middle$;
13//# sourceMappingURL=index.js.map
\No newline at end of file