@vuesax-alpha/nightly
Version:
A Component Library for Vue 3
20 lines (17 loc) • 540 B
JavaScript
import { get, set } from 'lodash-unified';
export { hasOwn } from '@vue/shared';
const keysOf = (arr) => Object.keys(arr);
const entriesOf = (arr) => Object.entries(arr);
const hasOwnProperty = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);
const getProp = (obj, path, defaultValue) => {
return {
get value() {
return get(obj, path, defaultValue);
},
set value(val) {
set(obj, path, val);
}
};
};
export { entriesOf, getProp, hasOwnProperty, keysOf };
//# sourceMappingURL=objects.mjs.map