https://github.com/serapath/x-is-empty-object
x is either `{}` or `new Object()`
https://github.com/serapath/x-is-empty-object
Last synced: about 1 year ago
JSON representation
x is either `{}` or `new Object()`
- Host: GitHub
- URL: https://github.com/serapath/x-is-empty-object
- Owner: serapath
- License: mit
- Created: 2016-09-06T15:03:30.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-11-22T16:03:27.000Z (over 9 years ago)
- Last Synced: 2025-03-31T05:02:55.913Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/x-is-empty-object
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# x-is-empty-object
x is either `{}` or `new Object()`
# usage
`npm install x-is-empty-object`
```js
var xEmptyObject = require('x-is-empty-object')
xEmptyObject({}) // => true
xEmptyObject(new Object) // => true
xEmptyObject(new Object()) // => true
xEmptyObject([]) // => false
xEmptyObject('') // => false
xEmptyObject(new Date) // => false
xEmptyObject(null) // => false
xEmptyObject() // => false
xEmptyObject(function(){}) // => false
xEmptyObject(new RegExp) // => false
```
# related
a list of other `x-is-...` modules can be found at
* [x-is](https://www.npmjs.com/package/x-is)