webhook-action/node_modules/es-abstract/2020/thisBooleanValue.js

14 lines
332 B
JavaScript
Raw Normal View History

'use strict';
var $BooleanValueOf = require('call-bind/callBound')('Boolean.prototype.valueOf');
2024-03-28 02:00:41 +00:00
// https://262.ecma-international.org/6.0/#sec-properties-of-the-boolean-prototype-object
module.exports = function thisBooleanValue(value) {
2024-03-28 02:00:41 +00:00
if (typeof value === 'boolean') {
return value;
}
return $BooleanValueOf(value);
};