13 lines
291 B
Plaintext
Executable File
13 lines
291 B
Plaintext
Executable File
import { ToObject } from './262';
|
|
/**
|
|
* https://tc39.es/ecma402/#sec-coerceoptionstoobject
|
|
* @param options
|
|
* @returns
|
|
*/
|
|
export function CoerceOptionsToObject(options) {
|
|
if (typeof options === 'undefined') {
|
|
return Object.create(null);
|
|
}
|
|
return ToObject(options);
|
|
}
|