This repository has been archived on 2025-07-07. You can view files and clone it, but cannot push or open issues or pull requests.
Files
eternos/frontend/node_modules/es-abstract/2018/thisBooleanValue.js
2025-01-13 09:33:52 +03: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);
};