Repost: cryptocoinjs/bs58#41 by @pundoo
on api example, it says :
input must be a Buffer or an Array
but gives error when running :
bs58.encode(new Uint8Array([1, 2])); or
bs58.encode([1, 2]);
bundled using browserify and running on chrome (latest version)