Skip to content

isEmpty

Determine if a value is empty

493 bytes

Usage

Pass in a value and get a boolean telling you if the value is empty.

import * as _ from 'radashi'
_.isEmpty([]) // => true
_.isEmpty('') // => true
_.isEmpty('hello') // => false
_.isEmpty(['hello']) // => false