Skip to content
On this page

isEmpty

Identifies empty strings.

Usage

ts
import { isEmpty } from '@screaming/utils'

isEmpty('ribbit')
// false

isEmpty('   ')
// false

isEmpty('')
// true
1
2
3
4
5
6
7
8
9
10

Type Definitions

ts
/**
 * @param str - The string.
 * @returns If the string is empty.
 */
export declare function isEmpty(str: string): boolean
1
2
3
4
5