@aws/pdk
Version:
All documentation is located at: https://aws.github.io/aws-pdk
17 lines (13 loc) • 467 B
JavaScript
;
var IsUnclampedIntegerElementType = require('./IsUnclampedIntegerElementType');
var IsBigIntElementType = require('./IsBigIntElementType');
// https://262.ecma-international.org/15.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;
};