isEmpty
Returns true
if the array is empty, false
otherwise.
Type
type isEmpty = <E>(s: Array<E>) => boolean
Example
import {isEmpty} from 'fnxt/array';
const array = [2, 3, 4];
isEmpty(array) // -> false
isEmpty([]) // true
Returns true
if the array is empty, false
otherwise.
type isEmpty = <E>(s: Array<E>) => boolean
import {isEmpty} from 'fnxt/array';
const array = [2, 3, 4];
isEmpty(array) // -> false
isEmpty([]) // true