@annexe/string.isemptystring
v0.1.1
Published
A utility function to check if a string is empty.
Downloads
3
Readme
@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