mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-07 04:26:32 +08:00
Info at https://stylelint.io/migration-guide/to-15 Our custom rule needed to be updated to reflect a small change. All changes are separated into patches for ease of review. More work is need for a v16 migration so separating it to reduce risks of breaking. Bug: none Change-Id: I616829fba25b06bf8febe8390074046ad582f531 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6126881 Commit-Queue: Nikolay Vitkov <nvitkov@chromium.org> Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
18 lines
437 B
JavaScript
18 lines
437 B
JavaScript
"use strict";
|
|
|
|
exports.__esModule = true;
|
|
exports["default"] = getProp;
|
|
function getProp(obj) {
|
|
for (var _len = arguments.length, props = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
props[_key - 1] = arguments[_key];
|
|
}
|
|
while (props.length > 0) {
|
|
var prop = props.shift();
|
|
if (!obj[prop]) {
|
|
return undefined;
|
|
}
|
|
obj = obj[prop];
|
|
}
|
|
return obj;
|
|
}
|
|
module.exports = exports.default; |