source: node_modules/es-toolkit/dist/compat/util/toPlainObject.d.mts

Last change on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago

Added visualizations

  • Property mode set to 100644
File size: 454 bytes
RevLine 
[a762898]1/**
2 * Converts value to a plain object flattening inherited enumerable string keyed properties of value to own properties of the plain object.
3 *
4 * @param {any} value The value to convert.
5 * @returns {any} Returns the converted plain object.
6 *
7 * @example
8 * function Foo() {
9 * this.b = 2;
10 * }
11 * Foo.prototype.c = 3;
12 * toPlainObject(new Foo()); // { b: 2, c: 3 }
13 */
14declare function toPlainObject(value?: any): any;
15
16export { toPlainObject };
Note: See TracBrowser for help on using the repository browser.