Skip to main content
Module

x/rambda/index.d.ts>startsWith

Faster and smaller alternative to Ramda
Go to Latest
function startsWith
import { startsWith } from "https://deno.land/x/rambda@v7.0.1/index.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.

Parameters

target: string
str: string

Returns

boolean

Parameters

target: string

Returns

(str: string) => boolean

Parameters

target: T[]
list: T[]

Returns

boolean

Parameters

target: T[]

Returns

(list: T[]) => boolean