• Fiona@discuss.tchncs.de
    link
    fedilink
    arrow-up
    8
    ·
    edit-2
    11 hours ago

    And that isn’t even the worst thing about it…

    The implementation looks like this:

    function isEven(i) {
      return !isOdd(i);
    };
    

    And yes, is-odd is a dependency that in turn depends on is-number