Frontend/25_01_07/mai/node_modules/es-abstract/2019/thisBooleanValue.js
szabomarton 7f4a15b9c3 asd
2025-01-28 11:38:27 +01:00

14 lines
323 B
JavaScript

'use strict';
var $BooleanValueOf = require('call-bound')('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);
};