UNPKG

@kiwicom/orbit-components

Version:

Orbit-components is a React component library which provides developers with the easiest possible way of building Kiwi.com’s products.

27 lines (21 loc) 452 B
"use strict"; exports.__esModule = true; exports.default = void 0; const getProperty = (property, { index, devices }, props) => { const viewport = props && props[devices[index]]; if (viewport && viewport[property]) { return viewport[property]; } if (index !== 0) { return getProperty(property, { index: index - 1, devices }, props); } return null; }; var _default = getProperty; exports.default = _default;