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