Skip to content

alexandreferris/isitequal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

isitequal

Project Size Project Downloads Project License

Description

Started with the idea to create an extension function for Any* objects to verify the equality of two Any* objects, such as:

var string = "dummyString"
var resultTrue = string.isItEqual("dummyString") // true
var resultFalse = string.isItEqual("anotherDummyString") // False

But due to the lack of knowledge of the developer (in this case, it is me) to create an extension function, another approach was done, such as just having a function that compares both Any* objects with === (You can read about Equality comparisons and sameness here)

So, the end result is basically:

npm install isitequal
----
var iie = require('isitequal')

var dummy = "dummy"
var dummyToBeCompared = "dummy"

var result = iie.isItEqual(dummy, dummyToBeCompared)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published