• Fiona@discuss.tchncs.de
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    4 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