#Use isNullOrUndefined from utils
1 messages · Page 1 of 1 (latest)
perhaps you meant import { isNullOrUndefined } from "@bookwave/utils";?
Am I suppose to declare it as a function somewhere?
Because when I import it like that, it imports from "node:util", which is saying is deprecrated
@ionic tiger thanks for your reply
isNullOrUndefined is not a standard thing as far as I'm aware, so I suggest you ask the person who asked you what it is they want
You can write it very easily
function isNullOrUndefined(u: unknown): u is null | undefined {
return u === null || u === undefined
}
does it not already exist in your @bookwave/utils module? i assumed it did and that's why you tried to import from there originally
seems to be a private/local module or alias FYI
yeah, that's what i figured
I added it manually