Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 1.15 KB

File metadata and controls

27 lines (19 loc) · 1.15 KB

Module: lib.bool

README -> API Index -> Modules Index -> lib.bool

Source: src/lib/bool.js

Explicit boolean intent detection and conversion helpers.

Exported Functions

  • intentTrue - Detect affirmative intent.
  • intentFalse - Detect negative intent.
  • is - Is the value a real boolean (true or false)?
  • isIntent - Does the value explicitly encode boolean intent?
  • to - Strict boolean conversion.
  • byIntent - Intent-based boolean conversion.
  • hasIntent - Alias of lib.bool.isIntent.
  • ish - Alias of lib.bool.isIntent.
  • yes - Alias of lib.bool.intentTrue.
  • no - Alias of lib.bool.intentFalse.

Related