Using "typeof" operator to check for functions
Updated the package dependencies