Skip to content

Commit 86bab84

Browse files
committed
ValueMappings.literalToNumber
1 parent afac7ba commit 86bab84

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ValueMappings.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ export namespace ValueMappings {
99
return new Date(n.term.value)
1010
}
1111

12+
export function literalToNumber(n: Wrapper): number {
13+
return Number(n.term.value)
14+
}
15+
1216
export function iriToString(n: Wrapper): string {
1317
return n.term.value
1418
}

0 commit comments

Comments
 (0)