Travis status Dependency status devDependency status npm version ## to-object-x ES6-compliant shim for ToObject. **See**: [7.1.13 ToObject ( argument )](http://www.ecma-international.org/ecma-262/6.0/#sec-toobject) **Version**: 1.5.0 **Author**: Xotic750 **License**: [MIT](<https://opensource.org/licenses/MIT>) **Copyright**: Xotic750 ### `module.exports(value)` ⇒ Object ⏏ The abstract operation ToObject converts argument to a value of type Object. **Kind**: Exported function **Returns**: Object - The `value` converted to an object. **Throws**: - TypeError If `value` is a `null` or `undefined`. | Param | Type | Description | | --- | --- | --- | | value | \* | The `value` to convert. | **Example** ```js var ToObject = require('to-object-x'); ToObject(); // TypeError ToObject(null); // TypeError ToObject('abc'); // Object('abc') ToObject(true); // Object(true) ToObject(Symbol('foo')); // Object(Symbol('foo')) ```