Mixin for within function
within mixin without units
merge
Added within mixing to Sensor
Removed error causing check
Added guard for classes that don’t support units
Reduced code duplication
changed hasOwnProperty to typeof