Skip to content

Commit

Permalink
Update helpers.ts fix for relative#134
Browse files Browse the repository at this point in the history
fix for relative#134
  • Loading branch information
pabx06 authored Dec 26, 2023
1 parent 38713b8 commit b3382dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Node, EmptyStatement, Literal, Identifier } from './types'

// Immutability™™™™™™
export function immutate(item: any) {
return JSON.parse(JSON.stringify(item))
return {...item}
}

export function literalOrIdentifierToString(node: Node): string {
Expand Down

0 comments on commit b3382dc

Please sign in to comment.