@yookue/ts-lang-utils
    Preparing search index...

    Function isNotFalse

    • Returns whether the given value is nil or can be converted to true

      Parameters

      • Optionalvalue: null | string | number | boolean | (() => boolean)

        the source value to check

      Returns boolean

      whether the given value is nil or can be converted to true

      David Hsing

      isNotFalse(true);    // true
      isNotFalse(undefined); // true
      isNotFalse(null); // true
      isNotFalse('yes'); // true
      isNotFalse('foobar'); // true
      isNotFalse(() => true); // true