diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2018-10-15 07:29:50 +1100 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-10-14 17:38:23 -0400 |
commit | 10a97679ac80b4304c75d33cbc59c5736d11deb1 (patch) | |
tree | b51b9183ed251f61373069e5c4d35e39603bedb2 /js/text_encoding.ts | |
parent | 1840a1971317f5b8fc6e322b3a414b7f8a593c88 (diff) |
Align JSDoc to style guide.
Diffstat (limited to 'js/text_encoding.ts')
-rw-r--r-- | js/text_encoding.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/js/text_encoding.ts b/js/text_encoding.ts index 087bbc952..72a355d5f 100644 --- a/js/text_encoding.ts +++ b/js/text_encoding.ts @@ -2,6 +2,7 @@ import * as base64 from "base64-js"; import { DenoError, ErrorKind } from "./errors"; +/** Decodes a string of data which has been encoded using base-64. */ export function atob(s: string): string { const rem = s.length % 4; // base64-js requires length exactly times of 4 @@ -24,6 +25,7 @@ export function atob(s: string): string { return result; } +/** Creates a base-64 ASCII string from the input string. */ export function btoa(s: string): string { const byteArray = []; for (let i = 0; i < s.length; i++) { |