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