is-object-empty2 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.gitattributes ADDED
@@ -0,0 +1,5 @@
1
+ # Auto detect text files and perform LF normalization
2
+ * text=auto
3
+
4
+ # Prevent git from converting linebreaks in .js files
5
+ *.js text eol=lf
package/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * is-object-empty2 - 📦 Tiny utility to check if a value is a plain empty object in JavaScript and TypeScript
3
- * @version: v1.0.0
3
+ * @version: v1.0.3
4
4
  * @link: https://github.com/tutyamxx/is-object-empty2
5
5
  * @license: MIT
6
6
  **/
@@ -20,6 +20,6 @@
20
20
  * isObjectEmpty2(null); // false
21
21
  * isObjectEmpty2(undefined); // false
22
22
  */
23
- const isObjectEmpty2 = (obj) => obj !== null && typeof obj === 'object' && !Array.isArray(obj) ? Object.keys(obj).length === 0 : false;
23
+ const isObjectEmpty2 = (obj) => (obj !== null && typeof obj === 'object' && !Array.isArray(obj)) ? Object.keys(obj).length === 0 : false;
24
24
 
25
25
  module.exports = isObjectEmpty2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "is-object-empty2",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "📦 Tiny utility to check if a value is a plain empty object in JavaScript or TypeScript",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",