source: node_modules/recharts/lib/zIndex/getZIndexFromUnknown.js@ ba17441

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

Added visualizations

  • Property mode set to 100644
File size: 472 bytes
Line 
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.getZIndexFromUnknown = getZIndexFromUnknown;
7var _isWellBehavedNumber = require("../util/isWellBehavedNumber");
8function getZIndexFromUnknown(input, defaultZIndex) {
9 if (input && typeof input === 'object' && 'zIndex' in input && typeof input.zIndex === 'number' && (0, _isWellBehavedNumber.isWellBehavedNumber)(input.zIndex)) {
10 return input.zIndex;
11 }
12 return defaultZIndex;
13}
Note: See TracBrowser for help on using the repository browser.