0.0.2 • Published 10 months ago
is-anagram-check-package v0.0.2
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);