For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /reference/predicate/isNotEmpty.md.

isNotEmpty

Checks if a value is not empty. Complement of isEmpty.

isNotEmpty('hello') // true
isNotEmpty([]) // false

Usage

isNotEmpty(value: string | object)

Checks if a value is not empty. Complement of isEmpty.

import { isNotEmpty } from 'massaman'
// or:  import { isNotEmpty } from 'massaman/predicate'

isNotEmpty('hello') // true
isNotEmpty([]) // false

Parameters

valuestring | objectrequired

the value to test.

Returns

whether the supported value contains at least one element or own enumerable property.

boolean