safers
Version:
Safely convert to the desired data and error-free refine values.
19 lines (18 loc) • 379 B
JavaScript
import { isArray as n } from "../utils/isArray.js";
import { isNullish as m } from "../utils/isNullish.js";
import "../utils/isNull.js";
import "../../lib/identifyType-d39b7385.js";
import "../utils/isUndefined.js";
function f(i, o, r) {
if (!n(i))
return r;
try {
const t = i[o];
return m(t) ? r : t;
} catch {
return r;
}
}
export {
f as findIndex
};