UNPKG

ruchy-syntax-tools

Version:

Comprehensive syntax highlighting and language support for the Ruchy programming language

7 lines (5 loc) 200 B
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]'; }