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

x/dtils/mod.ts>SafeUnknownArray#sureGet

The best unofficial library of utilities for Deno applications
Go to Latest
method SafeUnknownArray.prototype.sureGet
import { SafeUnknownArray } from "https://deno.land/x/dtils@2.4.0/mod.ts";

Gets the value of a single index in the array. If the index doesn't exist, an error is thrown

Parameters

index: number