isIterable,
isNotEmptyArray,
isNotEmptyString,
- isNullOrUndefined,
isObject,
isUndefined,
isValidTime,
expect(isUndefined(new WeakSet())).toBe(false)
})
- await it('Verify isNullOrUndefined()', () => {
- expect(isNullOrUndefined(undefined)).toBe(true)
- expect(isNullOrUndefined(null)).toBe(true)
- expect(isNullOrUndefined('')).toBe(false)
- expect(isNullOrUndefined(0)).toBe(false)
- expect(isNullOrUndefined({})).toBe(false)
- expect(isNullOrUndefined([])).toBe(false)
- expect(isNullOrUndefined(new Map())).toBe(false)
- expect(isNullOrUndefined(new Set())).toBe(false)
- expect(isNullOrUndefined(new WeakMap())).toBe(false)
- expect(isNullOrUndefined(new WeakSet())).toBe(false)
- })
-
await it('Verify isEmptyArray()', () => {
expect(isEmptyArray([])).toBe(true)
expect(isEmptyArray([1, 2])).toBe(false)