# @lxfriday/is-empty-object

> is a empty object?

Latest version **1.0.2** (published 2019-07-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install @lxfriday/is-empty-object
pnpm add @lxfriday/is-empty-object
yarn add @lxfriday/is-empty-object
bun add @lxfriday/is-empty-object
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2019-07-22 |
| First published | 2019-07-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | lxfriday |
| Maintainers | lxfriday |
| Keywords | is-empty-object |

## Links

- npm: https://www.npmjs.com/package/@lxfriday/is-empty-object
- Repository: https://github.com/lxfriday/is-empty-object
- Homepage: https://github.com/lxfriday/is-empty-object#readme
- Issues: https://github.com/lxfriday/is-empty-object/issues
- npm.io page: https://npm.io/package/@lxfriday/is-empty-object

## Recent versions

- 1.0.2 (latest) — 2019-07-22
- 1.0.1 — 2019-07-19

## README

# @lxfriday/is-empty-object

Judging whether a variable is an empty object

## install

```bash
npm i @lxfriday/is-empty-object -S
# or
yarn add @lxfriday/is-empty-object
```

## params
`smoothScrollTo(obj)`

- `obj` {`any`} `required` the input variable

## usage

```javascript
const isEmptyObj = require('..')

console.log('()', isEmptyObj())
console.log('{}', isEmptyObj({}))
console.log('{ a: 1 }', isEmptyObj({ a: 1 }))

const obj1 = {}
Object.defineProperty(obj1, 'name', {
  value: 'lxfriday',
})
console.log('obj1', isEmptyObj(obj1))

let sym1 = Symbol('name')

const obj2 = { [sym1]: 'lxfriday' }

console.log('obj2', isEmptyObj(obj2))

// () false
// {} true
// { a: 1 } false
// obj1 false
// obj2 false
```

---
_Source: https://npm.io/package/@lxfriday/is-empty-object · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
