method LinkedListDeque.prototype._isValidIndeximport { LinkedListDeque } from "https://deno.land/x/ssds@0.2.0/mod.ts"; _isValidIndex(index: number): booleanDetermines if an index is valid or not. Parametersindex: numberReturnsboolean'true' if the index is non-negative and less than this.length.