source: node_modules/recharts/es6/zIndex/getZIndexFromUnknown.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: 320 bytes
Line 
1import { isWellBehavedNumber } from '../util/isWellBehavedNumber';
2export function getZIndexFromUnknown(input, defaultZIndex) {
3 if (input && typeof input === 'object' && 'zIndex' in input && typeof input.zIndex === 'number' && isWellBehavedNumber(input.zIndex)) {
4 return input.zIndex;
5 }
6 return defaultZIndex;
7}
Note: See TracBrowser for help on using the repository browser.