is-anagram-check-package
v0.0.2
Published
Check if first string is an anagram of the second string, return true if yes, and false otherwise.
Downloads
3
Readme
isAnagram functions
An Anagram is a word or phrase formed by rearranging the letters of a different word or phrase, typically using all the original letters exactly once.
This package checks if one string is an anagram of other string.
Code example:
const { isAnagram } = require("is-anagram-check-package");
const checkStringsWithPositiveResult = isAnagram({ string1: "anagram", string2: "aanrgam" }); const checkStringsWithNegativeResult = isAnagram({ string1: "anagram", string2: "aanrga" });
console.log("Positive result: ", checkStringsWithPositiveResult);
console.log("Negative result: ", checkStringsWithNegativeResult);