An alternative implementation of the if-else statement using arrays
# npm
npm install arrif
# yarn
yarn add arrif
import arrif from 'arrif'
console.log(arrif("Si", "No", true))
//=> Si
Type: any
Returned if condition is true
Type: any
Returned if condition is false
Type: string | number | boolean | null | undefined
Condition