mirror of
https://github.com/biobulkbende/biobulkbende.org.git
synced 2024-09-29 09:06:04 +00:00
17 lines
456 B
JavaScript
17 lines
456 B
JavaScript
'use strict';
|
|
|
|
var IsUnclampedIntegerElementType = require('./IsUnclampedIntegerElementType');
|
|
var IsBigIntElementType = require('./IsBigIntElementType');
|
|
|
|
// https://tc39.es/ecma262/2020/#sec-isnotearconfiguration
|
|
|
|
module.exports = function IsNoTearConfiguration(type, order) {
|
|
if (IsUnclampedIntegerElementType(type)) {
|
|
return true;
|
|
}
|
|
if (IsBigIntElementType(type) && order !== 'Init' && order !== 'Unordered') {
|
|
return true;
|
|
}
|
|
return false;
|
|
};
|