useCheckIncludeEmoji
Introduction
判断字符串中是否包含 Emoji 表情
Basic Usage
ts
import { useCheckIncludeEmoji } from '@flypeng/tool/browser';
Type Declaration
ts
/**
* 判断字符串中是否包含Emoji表情
* @param value
* @returns
*/
declare function useCheckIncludeEmoji(value: string): boolean;
Online Demo
useCheckIncludeEmoji
@flypeng/tool: false
🚀@flypeng/tool✨: true
<script lang="ts" setup>
import { useCheckIncludeEmoji } from '@flypeng/tool/browser';
const checkStringOne = '@flypeng/tool';
const checkStringTwo = '🚀@flypeng/tool✨';
</script>
<template>
<div>{{ checkStringOne }}: {{ useCheckIncludeEmoji(checkStringOne) }}</div>
<div>{{ checkStringTwo }}: {{ useCheckIncludeEmoji(checkStringTwo) }}</div>
</template>