equal

Tests if two strings are equal.

Install

Install all functions of strman

yarn add strman

or just the equal function

yarn add strman.equal

Usage

import { equal } from 'strman'
// OR
import equal from 'strman.equal'
Parameters:
Name Type Description
stringA String

String for the comparative

stringB String

String to be compared

Source:
Returns:

stringAis equal stringB

Type
Boolean
Example
equal('foo', 'foo')
// => true