Module

Global

Package
purescript-globalsDEPRECATED
Repository
purescript/purescript-globals

This module defines types for some global Javascript functions and values.

#nan Source

nan :: Number

Not a number (NaN)

#isNaN Source

isNaN :: Number -> Boolean

Test whether a number is NaN

#infinity Source

infinity :: Number

Positive infinity

#isFinite Source

isFinite :: Number -> Boolean

Test whether a number is finite

#readInt Source

readInt :: Int -> String -> Number

Parse an integer from a String in the specified base

#readFloat Source

readFloat :: String -> Number

Parse a floating point value from a String

#decodeURI Source

decodeURI :: String -> String

uri decoding

#encodeURI Source

encodeURI :: String -> String

uri encoding

#decodeURIComponent Source

decodeURIComponent :: String -> String

uri component decoding

#encodeURIComponent Source

encodeURIComponent :: String -> String

uri component encoding