memesearch
is-even and is-odd recursion

is-even and is-odd recursion

Download Find similar pictures
Text on the meme
/* * is-even <https://github.com/jonschlinkert/is-even> * * Copyright (c) 2015-2017, Jon Schlinkert. * Released under the MIT License. */ 'use strict'; var isOdd = require('is-odd'); module.exports = function isEven(i) { return !isOdd(i); }; /* * is-odd <https://github.com/jonschlinkert/is-odd> * * Copyright (c) 2015-2017, Jon Schlinkert. * Released under the MIT License. */ 'use strict'; var isEven = require('is-even'); module.exports = function isOdd(i) { return !isEven(i); };
What it means

Two code panels define `is-even` in terms of `is-odd`, and `is-odd` in terms of `is-even`, creating a circular dependency. The joke is that neither function has an independent definition, parodying confusing or self-referential programming logic.

Objects
Tags
Source
Type
image
Size
800×538 · 40.1 KiB
Mood
absurd, sarcastic
Language
en
Added