lyb-js 1.6.31 → 1.6.32

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.
@@ -0,0 +1,2 @@
1
+ /** @description 判断是否为空值 */
2
+ export declare const libJsIsNull: (value: any) => boolean;
@@ -0,0 +1,2 @@
1
+ /** @description 判断是否为空值 */
2
+ export const libJsIsNull = (value) => value === null || value === undefined || value === "";
@@ -1,4 +1,4 @@
1
- import { libIsNull } from "../Base/LibIsNull";
1
+ import { libJsIsNull } from "../Base/LibJsIsNull";
2
2
  /** @description 去掉对象内的空值 */
3
3
  export const libJsPruneEmpty = (obj) => {
4
4
  const result = Object.entries(obj).reduce((acc, [key, value]) => {
@@ -13,7 +13,7 @@ export const libJsPruneEmpty = (obj) => {
13
13
  acc[key] = next;
14
14
  return acc;
15
15
  }
16
- if (!libIsNull(value)) {
16
+ if (!libJsIsNull(value)) {
17
17
  acc[key] = value;
18
18
  }
19
19
  return acc;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lyb-js",
3
- "version": "1.6.31",
3
+ "version": "1.6.32",
4
4
  "description": "自用JS方法库",
5
5
  "license": "ISC",
6
6
  "type": "module",