Options
All
  • Public
  • Public/Protected
  • All
Menu

布尔值相关操作

Hierarchy

  • Booleans

Index

Constructors

Methods

Constructors

constructor

Methods

Static isBoolean

  • isBoolean(source: any): boolean
  • 判断目标值是否为布尔值

    Parameters

    • source: any

    Returns boolean

Static parse

  • parse(source: any, defaultValue?: boolean): boolean
  • 转为布尔值

    Parameters

    • source: any

      目标值

    • Optional defaultValue: boolean

      默认值,当为空或无效的布尔值时 返回

    Returns boolean