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

x/rambda/immutable.d.ts>startsWith

Faster and smaller alternative to Ramda
Latest
function startsWith
import { startsWith } from "https://deno.land/x/rambda@9.4.1/immutable.d.ts";

When iterable is a string, then it behaves as String.prototype.startsWith. When iterable is a list, then it uses R.equals to determine if the target list starts in the same way as the given target.

Type Parameters

T extends string

Parameters

question: T
input: string

Returns

boolean

Type Parameters

T extends string

Parameters

question: T

Returns

(input: string) => boolean

Parameters

question: readonly T[]
input: readonly T[]

Returns

boolean

Parameters

question: readonly T[]

Returns

(input: readonly T[]) => boolean