Get rid of lots of unnecessary lodash calls.

This commit is contained in:
baldo 2022-07-28 13:16:13 +02:00
commit 5592892f0d
16 changed files with 99 additions and 115 deletions

View file

@ -1,8 +1,8 @@
import _ from "lodash"
import {MAC} from "../types";
import {isString, MAC} from "../types";
export function normalizeString(str: string): string {
return _.isString(str) ? str.trim().replace(/\s+/g, ' ') : str;
return isString(str) ? str.trim().replace(/\s+/g, ' ') : str;
}
export function normalizeMac(mac: MAC): MAC {