parent
9c5223a5f5
commit
cc37fee0ab
3 changed files with 11 additions and 7 deletions
|
|
@ -37,3 +37,7 @@ when defined(js):
|
|||
asm """`result` = typeof BigUint64Array != 'undefined'"""
|
||||
|
||||
proc getProtoName*[T](a: T): cstring {.importjs: "Object.prototype.toString.call(#)".}
|
||||
|
||||
proc isInteger*[T](x: T): bool {.importjs: "Number.isInteger(#)".}
|
||||
|
||||
proc isSafeInteger*[T](x: T): bool {.importjs: "Number.isSafeInteger(#)".}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue