ArrayBuffer.purs 299 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
module Gargantext.Utils.ArrayBuffer where


import Data.ArrayBuffer.Types (ArrayBuffer)
import Data.Function.Uncurried (Fn1, runFn1)

foreign import arrayBufferToBase64Impl :: Fn1 ArrayBuffer String

arrayBufferToBase64 :: ArrayBuffer -> String
arrayBufferToBase64 = runFn1 arrayBufferToBase64Impl