Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 1.19 KB

README.md

File metadata and controls

29 lines (19 loc) · 1.19 KB

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)