Afanasev_Stepan_PIbd-21_IP/ИП 3 лаба/node_modules/es-abstract/2022/IsNoTearConfiguration.js
[USERNAME] 0dd26716dc Lab2-5
2024-01-10 16:11:49 +04:00

17 lines
467 B
JavaScript

'use strict';
var IsUnclampedIntegerElementType = require('./IsUnclampedIntegerElementType');
var IsBigIntElementType = require('./IsBigIntElementType');
// https://262.ecma-international.org/11.0/#sec-isnotearconfiguration
module.exports = function IsNoTearConfiguration(type, order) {
if (IsUnclampedIntegerElementType(type)) {
return true;
}
if (IsBigIntElementType(type) && order !== 'Init' && order !== 'Unordered') {
return true;
}
return false;
};