UNPKG

@mantine/form

Version:

Mantine form management library

15 lines (12 loc) 449 B
'use client'; 'use strict'; function getStatus(status, path) { const paths = Object.keys(status); if (typeof path === "string") { const nestedPaths = paths.filter((statusPath) => statusPath.startsWith(`${path}.`)); return status[path] || nestedPaths.some((statusPath) => status[statusPath]) || false; } return paths.some((statusPath) => status[statusPath]); } exports.getStatus = getStatus; //# sourceMappingURL=get-status.cjs.map