UNPKG

@mantine/utils

Version:

[![npm](https://img.shields.io/npm/dm/@mantine/utils)](https://www.npmjs.com/package/@mantine/utils)

16 lines (12 loc) 359 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function getSafeId(uid, errorMessage) { return (value) => { if (typeof value !== "string" || value.trim().length === 0) { throw new Error(errorMessage); } return `${uid}-${value}`; }; } exports.getSafeId = getSafeId; //# sourceMappingURL=get-safe-id.js.map