mirror of
https://github.com/denoland/deno.git
synced 2025-07-28 23:53:53 +00:00
Align JSDoc to style guide.
This commit is contained in:
parent
1840a19713
commit
10a97679ac
31 changed files with 437 additions and 423 deletions
|
@ -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++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue