errorIfNotFloat(arg): void Triggers error if arg is not float of type 'number' . Installation npm i error-if-not-float Loading import { errorIfNotFloat } from 'error-if-not-float';