'use strict'; // src/index.ts var toKey = (value) => { const _type = typeof value; if (_type == "string") { return value; } if (value && _type == "object") { let str = "\0"; if (Array.isArray(value)) { for (let i = value.length; i--; ) { str += toKey(value[i]) + "\f"; } } else if (value instanceof Date) { str += value.getTime(); } else { const keys = Object.keys(value).sort(); for (let i = keys.length; i--; ) { const key = keys[i]; const child = value[key]; if (child !== void 0) { str += key + ":" + toKey(child) + "\v"; } } } return str; } return "\b" + value; }; var src_default = toKey; module.exports = src_default; //# sourceMappingURL=index.cjs.map module.exports = exports.default; //# sourceMappingURL=index.cjs.map