source:
node_modules/recharts/es6/util/getSliced.js@
a762898
| Last change on this file since a762898 was a762898, checked in by , 5 months ago | |
|---|---|
|
|
| File size: 215 bytes | |
| Line | |
|---|---|
| 1 | export function getSliced(arr, startIndex, endIndex) { |
| 2 | if (!Array.isArray(arr)) { |
| 3 | return arr; |
| 4 | } |
| 5 | if (arr && startIndex + endIndex !== 0) { |
| 6 | return arr.slice(startIndex, endIndex + 1); |
| 7 | } |
| 8 | return arr; |
| 9 | } |
Note:
See TracBrowser
for help on using the repository browser.
