Socket
Socket
Sign inDemoInstall

@uxf/core

Package Overview
Dependencies
Maintainers
1
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uxf/core - npm Package Compare versions

Comparing version 10.0.0-beta.9 to 10.0.0-beta.15

types/index.d.ts

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc