UNPKG

@kikiutils/node

Version:

A modular utility library for Node.js offering secure hashing, flexible logging, datetime manipulation, and more.

7 lines (5 loc) 190 B
function extractFirstValue(value, defaultValue) { return (Array.isArray(value) ? value[0] : value) ?? defaultValue; } export { extractFirstValue }; //# sourceMappingURL=general.mjs.map