UNPKG

isharry

Version:

A simple NPM package to check if a string is 'Harry' and get its length.

13 lines (11 loc) 209 B
function isHarryCount(name) { let stringCounter = name.length; return stringCounter; } function isHarry(name) { return name === "Harry"; } module.exports = { isHarryCount, isHarry }