Files
emaui/node_modules/recharts/es6/util/getSliced.js
2026-05-29 15:23:46 +03:00

9 lines
215 B
JavaScript

export function getSliced(arr, startIndex, endIndex) {
if (!Array.isArray(arr)) {
return arr;
}
if (arr && startIndex + endIndex !== 0) {
return arr.slice(startIndex, endIndex + 1);
}
return arr;
}