-
Notifications
You must be signed in to change notification settings - Fork 0
Subhajit Sahu edited this page Mar 24, 2021
·
2 revisions
Checks if any value is true. 📰 📘
boolean.Or[n](a, b, ...)
// a: 1st boolean
// b: 2nd boolean
import (
boolean "github.com/golangf/extra-boolean"
)
boolean.Or(true, false)
// true
boolean.Or(false, false)
// false
boolean.Or4(false, true, false, true)
// true
boolean.Or4(false, false, false, false)
// false