forked from olcxjas-softworks/LarpixClient
Fix gitignore
This commit is contained in:
parent
cca8b02fea
commit
a3f9280a1e
2902 changed files with 86686 additions and 2 deletions
16
electron/node_modules/boolean/build/lib/boolean.js
generated
vendored
Normal file
16
electron/node_modules/boolean/build/lib/boolean.js
generated
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.boolean = void 0;
|
||||
const boolean = function (value) {
|
||||
switch (Object.prototype.toString.call(value)) {
|
||||
case '[object String]':
|
||||
return ['true', 't', 'yes', 'y', 'on', '1'].includes(value.trim().toLowerCase());
|
||||
case '[object Number]':
|
||||
return value.valueOf() === 1;
|
||||
case '[object Boolean]':
|
||||
return value.valueOf();
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
};
|
||||
exports.boolean = boolean;
|
||||
Loading…
Add table
Add a link
Reference in a new issue