0.1.1 • Published 3 years ago

@annexe/string.isemptystring v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@annexe/isnonemptystring

A Typescript utility function to assert whether a value is a string type.

Installation

To install @annexe/isnonemptystring:

Yarn

yarn add @annexe/isnonemptystring

NPM

npm install @annexe/isnonemptystring

Usage

import { isNonEmptyString } from '@annexe/isnonemptystring';

console.log(isNonEmptyString('')); // logs FALSE
console.log(isNonEmptyString('I am a string')); // logs TRUE