UNPKG

type-fns

Version:

A set of types, type checks, and type guards for simpler, safer, and easier to read code.

11 lines 328 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.hasUuid = void 0; /** * checks whether not an object that may have a uuid does have the uuid, at runtime */ const hasUuid = (obj) => { return typeof obj.uuid === 'string'; }; exports.hasUuid = hasUuid; //# sourceMappingURL=hasUuid.js.map