@amimpact/willy-utils 4.5.0 → 4.5.1

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/misc.ts +4 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amimpact/willy-utils",
3
- "version": "4.5.0",
3
+ "version": "4.5.1",
4
4
  "description": "Javascript utils",
5
5
  "scripts": {
6
6
  "publish:prerelease": "npm version prerelease --preid beta && npm publish --tag beta",
package/src/misc.ts CHANGED
@@ -166,6 +166,10 @@ export const isEmpty = (value): boolean => {
166
166
  return !Object.keys(value).length;
167
167
  }
168
168
 
169
+ if (Number.isNaN(value)) {
170
+ return false;
171
+ }
172
+
169
173
  return !value;
170
174
  };
171
175