Skip to main content
Module

x/fun/string.ts>equals

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Go to Latest
function equals
import { equals } from "https://deno.land/x/fun@v.2.0.0-alpha.11/string.ts";

Compare two strings for equality.

Examples

Example 1

import { equals } from "./string.ts";
import { pipe } from "./fn.ts";

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

const result1 = pipe(hello, equals(hi)); // false
const result2 = pipe(hi, equals(hi)); // true

Parameters

second: string

Returns

(first: string) => boolean