This commit is contained in:
2022-09-30 05:39:11 +00:00
parent 41ee9463ae
commit 4687fa49bc
11418 changed files with 1312504 additions and 0 deletions

17
buildfiles/node_modules/boolean/lib/boolean.ts generated vendored Normal file
View File

@ -0,0 +1,17 @@
const boolean = function (value: any): boolean {
if (typeof value === 'string') {
return [ 'true', 't', 'yes', 'y', 'on', '1' ].includes(value.trim().toLowerCase());
}
if (typeof value === 'number') {
return value === 1;
}
if (typeof value === 'boolean') {
return value;
}
return false;
};
export { boolean };