Skip to content

extending isBoolean w/ "True" #1672

@mathcoll

Description

@mathcoll

Hello, what about extending the isBoolean function by allowing :

  • "True"/"False" as valid boolean
  • "yes"/"no" as valid boolean (can be discussed but could make sense)

return (['true', 'false', '1', '0'].indexOf(str) >= 0);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions