flowbite-react
Version:
Official React components built for Flowbite and Tailwind CSS
20 lines (17 loc) • 406 B
JavaScript
function get(input, path) {
const keys = path.split(".");
let result = input;
for (const key of keys) {
if (typeof result === "boolean" || typeof result === "string") {
return result;
}
if (result == null || typeof result !== "object") {
return void 0;
}
result = result[key];
}
return result;
}
exports.get = get;
//# sourceMappingURL=get.cjs.map
;