1.0.0 • Published 5 years ago
@burntcoffee/is-isomorphic v1.0.0
Is-Isomorphic
Two strings are isomorphic if every character of the first string can be mapped to every character of the second string.
is-isomorphic allows you to check if two strings are isomorphic.
Install
$ npm install @burntcoffee/is-isomorphic
Usage
const isIsomorphic = require('@burntcoffee/is-isomorphic');
isIsomorphic('ACAB', 'XCXY');
// -> true
isIsomorphic('ACAB', 'XCuY');
// -> false
The isIsomorphic()
function expects two strings and returns a boolean indicating if the arguments are isomorphic.
1.0.0
5 years ago