UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

1 lines 524 B
{"version":3,"file":"primitive.cjs","names":[],"sources":["../../../../src/core/utils/primitive/primitive.ts"],"sourcesContent":["export type Primitive = string | number | boolean | bigint;\n\nexport function isPrimitive(value: unknown): value is Primitive {\n return (\n typeof value === 'string' ||\n typeof value === 'number' ||\n typeof value === 'boolean' ||\n typeof value === 'bigint'\n );\n}\n"],"mappings":";;AAEA,SAAgB,YAAY,OAAoC;AAC9D,QACE,OAAO,UAAU,YACjB,OAAO,UAAU,YACjB,OAAO,UAAU,aACjB,OAAO,UAAU"}