UNPKG

flowbite-react

Version:

Official React components built for Flowbite and Tailwind CSS

18 lines (16 loc) 387 B
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; } export { get }; //# sourceMappingURL=get.js.map