import { isNil } from "lodash"; export const startsWith = (target, str) => { if (isNil(str)) { return false; } return str.startsWith(target); };