UNPKG

@toreda/strong-types

Version:

Better TypeScript code in fewer lines.

19 lines (18 loc) 384 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.osValid = void 0; const set_1 = require("./set"); /** * Check whether target key identifies a supported OS. * @param value * @returns * * @category System Info */ function osValid(key) { if (!key) { return false; } return set_1.osSet.has(key); } exports.osValid = osValid;