Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/tests/specs/test/doc_duplicate_identifier/main.ts>add

A modern runtime for JavaScript and TypeScript.
Go to Latest
function add
import { add } from "https://deno.land/x/deno@v2.0.4/tests/specs/test/doc_duplicate_identifier/main.ts";
import { assertEquals } from "@std/assert/equals";
import { getModuleName, createFoo } from "./mod.ts";

const foo = createFoo();
assertEquals(getModuleName(), "mod.ts");
assertEquals(add(1, 2), foo());

Parameters

a: number
b: number

Returns

number