Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/deno/core/internal.d.ts>__bootstrap.primordials

A modern runtime for JavaScript and TypeScript.
Go to Latest
namespace __bootstrap.primordials
import { __bootstrap } from "https://deno.land/x/deno@v1.30.0/core/internal.d.ts";
const { primordials } = __bootstrap;

Primordials are a way to safely use globals without fear of global mutation Generally, this means removing this parameter usage and instead using a regular parameter:

Examples

Example 1

'thing'.startsWith('hello');

becomes

primordials.StringPrototypeStartsWith('thing', 'hello')

Variables