Skip to content

Commit 51059bc

Browse files
authored
chore: remove unused function (#535)
1 parent 3ecb620 commit 51059bc

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/utils.ts

-5
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@ export function comment(text: string): string {
1414
*/\n`;
1515
}
1616

17-
/** shim for Object.fromEntries() for Node < 13 */
18-
export function fromEntries(entries: [string, any][]): Record<string, unknown> {
19-
return entries.reduce((obj, [key, val]) => ({ ...obj, [key]: val }), {});
20-
}
21-
2217
/** Is this a ReferenceObject? (note: this is just a TypeScript helper for nodeType() below) */
2318
export function isRef(obj: any): obj is ReferenceObject {
2419
return !!obj.$ref;

0 commit comments

Comments
 (0)