UNPKG

jinbi-utils

Version:

这是一个实用工具库,包含了多个常用的功能模块。以下是各个模块的详细说明:

20 lines (15 loc) 431 B
import { isEmpty } from '../../src'; describe('isEmpty', () => { test(`isEmpty('') 返回 true`, () => { expect(isEmpty('')).toBe(true); }) test(`isEmpty(null) 返回 true`, () => { expect(isEmpty(null)).toBe(true); }) test(`isEmpty(undefined) 返回 true`, () => { expect(isEmpty(undefined)).toBe(true); }) test(`isEmpty(12323) 返回 false`, () => { expect(isEmpty(12323)).toBe(false); }) });