vue-app-sdk
Version:
21 lines (20 loc) • 741 B
JavaScript
;
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const _baseMatches = require("./_baseMatches.cjs");
const _baseMatchesProperty = require("./_baseMatchesProperty.cjs");
const identity = require("./identity.cjs");
const isArray = require("./isArray.cjs");
const property = require("./property.cjs");
function baseIteratee(value) {
if (typeof value == "function") {
return value;
}
if (value == null) {
return identity.default;
}
if (typeof value == "object") {
return isArray.default(value) ? _baseMatchesProperty.default(value[0], value[1]) : _baseMatches.default(value);
}
return property.default(value);
}
exports.default = baseIteratee;