is-def-npm-package is a simple utility that checks if a given string is equal to 'DEF'
. This is my first npm package, designed to demonstrate the basic functionality of a string comparison.
You can install the package via npm or yarn:
npm i @manojtharindu11/is-def
or
yarn add @manojtharindu11/is-def
After installation, you can import the isDef
function into your JavaScript code and use it to check if a string is 'DEF'
.
const isDef = require("@manojtharindu11/is-def");
console.log(isDef("DEF")); // true
console.log(isDef("def")); // false
console.log(isDef("DEF123")); // false
console.log(isDef("")); // false
function isDef(value) {
// Your implementation
}
value
(string): The string you want to check.
true
if the value is exactly equal to'DEF'
, otherwisefalse
.
This project is licensed under the MIT License - see the LICENSE file for details.