Function isStr

  • 检查是否字符串类型

    Parameters

    • value: any

      值

    Returns boolean

    isStr('test'); /// true
    isStr(null); /// false