Nodular Pudding Multiverse

    @vangware/predicates
    TypeScript icon, indicating that this package has built-in type declarations

    1.2.0 • Public • Published

    Vangware's Predicates

    Build Status Coverage License NPM Version Open Issues

    🧐 Predicate util functions

    Usage

    This package can be installed as a dependency or used directly.

    Usage as ECMAScript module

    🦕 In JS or deno:

    import { isBoolean } from "https://esm.sh/@vangware/predicates";
    
    isBoolean(true); // true
    isBoolean(false); // true
    isBoolean(undefined); // false

    🌎 Or in the browser:

    <script type="module">
    	import { isBoolean } from "https://esm.sh/@vangware/predicates";
    
    	isBoolean(true); // true
    	isBoolean(false); // true
    	isBoolean(undefined); // false
    </script>

    Usage with local installation

    First:

    npm i @vangware/predicates

    And then:

    import { isBoolean } from "@vangware/predicates";
    
    isBoolean(true); // true
    isBoolean(false); // true
    isBoolean(undefined); // false

    Documentation

    Documentation can be found HERE. It is auto-generated with typedoc based on the JSDocs and the types in the source. Shouldn't be necessary to read this, code editors like VSCode integrate the documentation in the UI.

    Changelog

    Changelog can be found HERE.

    Test coverage

    Test coverage can be found HERE.

    Install

    npm i @vangware/predicates

    DownloadsWeekly Downloads

    172

    Version

    1.2.0

    License

    MIT

    Unpacked Size

    38.8 kB

    Total Files

    69

    Last publish

    Collaborators

    • lukeshiru