Skip to main content

@portkey/validator

Introduction

Installation

npm install @portkey/validator

Usage

import { isNullish } from '@portkey/validator';

const res = isNullish(index)

Supplemental Code

const isNullish = (item: unknown): item is undefined | null => item === undefined || item === null;