Function isVoid

  • @description: 判断是否为空 undefined || null || "" @author: wuxh @Date: 2021-09-02 22:03:36

    Parameters

    • value: any

    Returns boolean

    boolean @example: isVoid(0) => false isVoid(undefined) => true isVoid('') => true isVoid(null) => true isVoid() => true