Skip to content

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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