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