source:
frontend/node_modules/underscore/modules/isBoolean.js
| Last change on this file was 9af201e, checked in by , 11 days ago | |
|---|---|
|
|
| File size: 200 bytes | |
| Line | |
|---|---|
| 1 | import { toString } from './_setup.js'; |
| 2 | |
| 3 | // Is a given value a boolean? |
| 4 | export default function isBoolean(obj) { |
| 5 | return obj === true || obj === false || toString.call(obj) === '[object Boolean]'; |
| 6 | } |
Note:
See TracBrowser
for help on using the repository browser.
