Skip to main content
cngx-src documentation

coerceBooleanProperty

Functioncore/utils

projects/core/utils/coerce.util.ts

Description#

Coerces a value to a boolean.

Strings are truthy unless they equal 'false'. All other falsy values return false.

Signature#

coerceBooleanProperty(value)

Parameters#

@paramvalue

Returns#

boolean