home
This commit is contained in:
parent
a71a3b5593
commit
cb52890889
16657 changed files with 1483086 additions and 1 deletions
13
home/ags/node_modules/es-abstract/2020/thisBooleanValue.js
generated
vendored
Normal file
13
home/ags/node_modules/es-abstract/2020/thisBooleanValue.js
generated
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
'use strict';
|
||||
|
||||
var $BooleanValueOf = require('call-bind/callBound')('Boolean.prototype.valueOf');
|
||||
|
||||
// https://262.ecma-international.org/6.0/#sec-properties-of-the-boolean-prototype-object
|
||||
|
||||
module.exports = function thisBooleanValue(value) {
|
||||
if (typeof value === 'boolean') {
|
||||
return value;
|
||||
}
|
||||
|
||||
return $BooleanValueOf(value);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue