source: node_modules/recharts/lib/util/getSliced.js

Last change on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago

Added visualizations

  • Property mode set to 100644
File size: 319 bytes
Line 
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.getSliced = getSliced;
7function getSliced(arr, startIndex, endIndex) {
8 if (!Array.isArray(arr)) {
9 return arr;
10 }
11 if (arr && startIndex + endIndex !== 0) {
12 return arr.slice(startIndex, endIndex + 1);
13 }
14 return arr;
15}
Note: See TracBrowser for help on using the repository browser.