source: node_modules/es-toolkit/dist/compat/object/invert.d.ts

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

Added visualizations

  • Property mode set to 100644
File size: 353 bytes
Line 
1/**
2 * Inverts the keys and values of an object.
3 *
4 * @param {object} object - The object to invert.
5 * @returns {Record<string, string>} - Returns the new inverted object.
6 *
7 * @example
8 * invert({ a: 1, b: 2, c: 3 });
9 * // => { '1': 'a', '2': 'b', '3': 'c' }
10 */
11declare function invert(object: object): Record<string, string>;
12
13export { invert };
Note: See TracBrowser for help on using the repository browser.