-
GIT: Get Tag Details of Current Checkout

About two weeks ago I migrated a project from CVS to git. After migration when we tried to build the project it kept failing. On debugging, I figured that in build.xml (it’s a legacy project with a complex ANT build script) they were trying to figure out from which tag it has been checked out by reading the Tag…
-
[JavaScript] Check if a function Exists or Not
![[JavaScript] Check if a function Exists or Not](https://muchhala.in/wp-content/uploads/2012/04/240px-JavaScript-logo.png)
If you want to check if a function exists or not before calling, here’s how to do it if(typeof window.functionName == ‘function’) { functionName (arg1, arg2); } It returns a boolean value indicating if the function exists or not.