mazey
    Preparing search index...

    Function isBool

    • Verify the validity of a boolean.

      Usage:

      import { isBool } from "mazey";

      const ret1 = isBool(true);
      const ret2 = isBool({ a: 1 });
      const ret3 = isBool("abc");
      const ret4 = isBool(null);
      console.log(ret1, ret2, ret3, ret4);

      Output:

      true false false false
      

      Parameters

      • bool: any

        The boolean to verify.

      Returns boolean

      Return TRUE if the object is a boolean.