is-answer-to-the-ultimate-question-of-life-the-universe-and-everything

Check if the value is 42

Usage no npm install needed!

<script type="module">
  import isAnswerToTheUltimateQuestionOfLifeTheUniverseAndEverything from 'https://cdn.skypack.dev/is-answer-to-the-ultimate-question-of-life-the-universe-and-everything';
</script>

README

is-answer-to-the-ultimate-question-of-life-the-universe-and-everything

Check if the value is 42

Wikipedia (English)

Wikipedia (Japanese)

npm version License: MIT

Usage

npm install is-answer-to-the-ultimate-question-of-life-the-universe-and-everything

yarn add is-answer-to-the-ultimate-question-of-life-the-universe-and-everything
const isAnswerToTheUltimateQuestionOfLifeTheUniverseAndEverything = require('is-answer-to-the-ultimate-question-of-life-the-universe-and-everything')

/* true */

console.log(isAnswerToTheUltimateQuestionOfLifeTheUniverseAndEverything(42))

/* false */

console.log(isAnswerToTheUltimateQuestionOfLifeTheUniverseAndEverything(41))

console.log(isAnswerToTheUltimateQuestionOfLifeTheUniverseAndEverything('42'))

CLI

npx is-answer-to-the-ultimate-question-of-life-the-universe-and-everything 42

>> true