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