feature: vor und nachteile

This commit is contained in:
Hikyu
2026-05-31 13:54:31 +02:00
parent 552a947a1c
commit e3dad17446
23270 changed files with 3024794 additions and 200 deletions
+15
View File
@@ -0,0 +1,15 @@
//#region src/compat/_internal/toKey.ts
/**
* Converts `value` to a string key if it's not a string or symbol.
*
* @private
* @param {*} value The value to inspect.
* @returns {string|symbol} Returns the key.
*/
function toKey(value) {
if (typeof value === "string" || typeof value === "symbol") return value;
if (Object.is(value?.valueOf?.(), -0)) return "-0";
return String(value);
}
//#endregion
exports.toKey = toKey;