Options
All
  • Public
  • Public/Protected
  • All
Menu

Project @eturino/ts-parse-boolean

Index

References

Functions

References

default

Renames and exports parseBoolean

Functions

parseBoolean

  • parseBoolean(x: any): boolean
  • Converts to a boolean. Returns false if the value is falsy. If it is truthy it checks it by converting to a string, trimming, upcasing, and checking if the value is not FALSE or NO or 0.

    Parameters

    • x: any

    Returns boolean

Generated using TypeDoc