String.purs 318 Bytes
Newer Older
1 2
module Gargantext.Utils.String where

3 4
import Prelude

5
import Data.Function.Uncurried (Fn1, runFn1)
6 7
import Data.Int as Int
import Data.Number.Format as DNF
8 9 10 11 12

foreign import _btoa :: Fn1 String String

btoa :: String -> String
btoa = runFn1 _btoa
13 14 15

intToString :: Int -> String
intToString = DNF.toString <<< Int.toNumber