@bytebury/bonobo - v0.2.1
    Preparing search index...

    @bytebury/bonobo - v0.2.1

    bonobo.js

    🙊 A civilized and peaceful utility library for TypeScript and ECMAScript.

    npm install --save @bytebury/bonobo
    

    https://bytebury.github.io/bonobo.js/

    import { reverse, isEmpty } from "@bytebury/bonobo";
    import { yearsBetween, today } from "@bytebury/bonobo/dates";
    import { ValueOf } from "@bytebury/bonobo/types";

    function isPalindrome(text: string): boolean {
    return reverse(text) === text;
    }

    const Fruits = ["apple", "banana", "orange"] as const;

    function eat(fruits: ValueOf<typeof Fruits>[]): void {
    if (isEmpty(fruits)) {
    console.log('you need to eat at least one fruit');
    return;
    }
    console.log(`You ate: ${fruits.join(', ')}.`)
    }

    function isOver18(): boolean {
    return yearsBetween(today(), new Date("2000-06-01")) >= 18;
    }