Comparing version 10.0.0-beta.9 to 10.0.0-beta.15
{ | ||
"name": "@uxf/core", | ||
"version": "10.0.0-beta.9", | ||
"version": "10.0.0-beta.15", | ||
"description": "UXF Core", | ||
@@ -5,0 +5,0 @@ "author": "Petr Vejvoda <vejvoda@uxf.cz>", |
@@ -381,2 +381,32 @@ # UXF Core | ||
```tsx | ||
import { filterNullish } from "@uxf/core/utils/filter-nullish"; | ||
filterNullish([0, "text", null, undefined, [], {}]) /* returns [0, "text", [], {}] */ | ||
``` | ||
```tsx | ||
import { isNil } from "@uxf/core/utils/is-nil"; | ||
isNil(null) /* returns true */ | ||
isNil(undefined) /* returns true */ | ||
isNil(true) /* returns false */ | ||
isNil(1) /* returns false */ | ||
isNil(0) /* returns false */ | ||
isNil([]) /* returns false */ | ||
isNil("string") /* returns false */ | ||
``` | ||
```tsx | ||
import { isNotNil } from "@uxf/core/utils/is-not-nil"; | ||
isNotNil(null) /* returns false */ | ||
isNotNil(undefined) /* returns false */ | ||
isNotNil(true) /* returns true */ | ||
isNotNil(1) /* returns true */ | ||
isNotNil(0) /* returns true */ | ||
isNotNil([]) /* returns true */ | ||
isNotNil("string") /* returns true */ | ||
``` | ||
## Validators | ||
@@ -383,0 +413,0 @@ ```tsx |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
85184
108
1823
418
3