Refactoring
Objects
add param 'defaultValue' to the 'dotPathValue' function and provide better type definition