@qvant/qui-max
Version:
A Vue 3 Design system for Web.
20 lines (19 loc) • 599 B
JavaScript
import isObject from "./isObject.js";
import isPrototype from "./_isPrototype.js";
import nativeKeysIn from "./_nativeKeysIn.js";
var objectProto = Object.prototype;
var hasOwnProperty = objectProto.hasOwnProperty;
function baseKeysIn(object) {
if (!isObject(object)) {
return nativeKeysIn(object);
}
var isProto = isPrototype(object), result = [];
for (var key in object) {
if (!(key == "constructor" && (isProto || !hasOwnProperty.call(object, key)))) {
result.push(key);
}
}
return result;
}
export { baseKeysIn as default };
//# sourceMappingURL=_baseKeysIn.js.map