Skip to main content
Module

x/aleph/server/deps.ts>MagicString#slice

The Full-stack Framework in Deno.
Very Popular
Go to Latest
method MagicString.prototype.slice
import { MagicString } from "https://deno.land/x/aleph@1.0.0-beta.1/server/deps.ts";

Returns the content of the generated string that corresponds to the slice between start and end of the original string. Throws error if the indices are for characters that were already removed.

Parameters

start: number
end: number

Returns

string