• 判断值是否未某个类型

    参数

    • val: unknown
    • type: string

    返回 boolean