18 lines
467 B
JavaScript
18 lines
467 B
JavaScript
// Module ID: 13022
|
|
// Function ID: 99217
|
|
// Name: GetOptionsObject
|
|
// Dependencies: []
|
|
|
|
// Module 13022 (GetOptionsObject)
|
|
arg5.GetOptionsObject = function GetOptionsObject(arg0) {
|
|
if (undefined === arg0) {
|
|
const _Object = Object;
|
|
return Object.create(null);
|
|
} else if ("object" === typeof arg0) {
|
|
return arg0;
|
|
} else {
|
|
const _TypeError = TypeError;
|
|
const typeError = new TypeError("Options must be an object");
|
|
throw typeError;
|
|
}
|
|
};
|