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