Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/fun/string.ts>compare

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Latest
function compare
import { compare } from "https://deno.land/x/fun@v2.0.0/string.ts";

Compare two strings for equality.

Examples

Example 1

import { compare } from "./string.ts";

const hello = "Hello";
const hi = "hi";
const hi2 = "hi";

const result1 = compare(hi)(hello); // false
const result2 = compare(hi)(hi2); // true

Parameters

second: string

Returns

(first: string) => boolean