mirror of
https://github.com/Priyatham-sai-chand/Locaft-backend.git
synced 2026-10-05 08:51:33 -07:00
5 lines
167 B
JavaScript
5 lines
167 B
JavaScript
|
|
import assertString from './util/assertString';
|
||
|
|
export default function isBoolean(str) {
|
||
|
|
assertString(str);
|
||
|
|
return ['true', 'false', '1', '0'].indexOf(str) >= 0;
|
||
|
|
}
|