mirror of
https://github.com/Azure/k8s-set-context.git
synced 2026-03-09 17:02:17 +08:00
7 lines
200 B
JavaScript
7 lines
200 B
JavaScript
import { toString } from './_setup.js';
|
|
|
|
// Is a given value a boolean?
|
|
export default function isBoolean(obj) {
|
|
return obj === true || obj === false || toString.call(obj) === '[object Boolean]';
|
|
}
|