errorIfNotString(arg): void Triggers error "Input must be string" if arg is not a string. Installation npm i error-if-not-string Loading import { errorIfNotString } from 'error-if-not-string';