UNPKG

type-fns

Version:

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

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