18 lines
1.7 KiB
JavaScript
18 lines
1.7 KiB
JavaScript
"use strict";
|
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
const get_viewport_size_1 = __importDefault(require("./get-viewport-size"));
|
|
/**
|
|
* Checks if the provided string is a valid device name contained in the screen size database.
|
|
* @function
|
|
* @name isValidDeviceName
|
|
* @param {string} inputString - The string to be validated.
|
|
* @returns {boolean} `true` if the specified string is a valid device name.
|
|
*/
|
|
function default_1(inputString) {
|
|
return !!get_viewport_size_1.default(inputString);
|
|
}
|
|
exports.default = default_1;
|
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXMtdmFsaWQtZGV2aWNlLW5hbWUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvYXBpL2lzLXZhbGlkLWRldmljZS1uYW1lLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsNEVBQWtEO0FBR2xEOzs7Ozs7R0FNRztBQUNILG1CQUF5QixXQUFXO0lBQ2hDLE9BQU8sQ0FBQyxDQUFDLDJCQUFlLENBQUMsV0FBVyxDQUFDLENBQUM7QUFDMUMsQ0FBQztBQUZELDRCQUVDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IGdldFZpZXdwb3J0U2l6ZSBmcm9tICcuL2dldC12aWV3cG9ydC1zaXplJztcblxuXG4vKipcbiAqIENoZWNrcyBpZiB0aGUgcHJvdmlkZWQgc3RyaW5nIGlzIGEgdmFsaWQgZGV2aWNlIG5hbWUgY29udGFpbmVkIGluIHRoZSBzY3JlZW4gc2l6ZSBkYXRhYmFzZS5cbiAqIEBmdW5jdGlvblxuICogQG5hbWUgaXNWYWxpZERldmljZU5hbWVcbiAqIEBwYXJhbSB7c3RyaW5nfSBpbnB1dFN0cmluZyAtIFRoZSBzdHJpbmcgdG8gYmUgdmFsaWRhdGVkLlxuICogQHJldHVybnMge2Jvb2xlYW59IGB0cnVlYCBpZiB0aGUgc3BlY2lmaWVkIHN0cmluZyBpcyBhIHZhbGlkIGRldmljZSBuYW1lLlxuICovXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiAoaW5wdXRTdHJpbmcpIHtcbiAgICByZXR1cm4gISFnZXRWaWV3cG9ydFNpemUoaW5wdXRTdHJpbmcpO1xufVxuIl19
|