Problem:
The function isObject should return true or false, depending if the supplied parameter is a true object, but if we call it with null it will return null
isObject(null)
//returns null
Solution:
If we wrap the value inside !! we avoid this edge case, ensuring false will be returned if the parameter is null
Problem: The function isObject should return true or false, depending if the supplied parameter is a true object, but if we call it with null it will return null
Solution: If we wrap the value inside !! we avoid this edge case, ensuring false will be returned if the parameter is null