frontend/.pnpm-store/v3/files/ee/8133ff787e4a92b0cf5defd89c8bcbb3823ffeb2c994170e595876ace7385eb7b41d1cb329810644f8df3aca488a0595057829fbbb82dc570e1712edd9b9b3-exec

15 lines
340 B
Plaintext
Executable File

/**
* https://tc39.es/ecma402/#sec-getoptionsobject
* @param options
* @returns
*/
export function GetOptionsObject(options) {
if (typeof options === 'undefined') {
return Object.create(null);
}
if (typeof options === 'object') {
return options;
}
throw new TypeError('Options must be an object');
}