Skip to content

Commit

Permalink
docs: add jsdoc for search
Browse files Browse the repository at this point in the history
  • Loading branch information
ikelax committed Sep 30, 2024
1 parent 7046cbb commit 8b29254
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ import is, { assert } from '@sindresorhus/is'
import { emojiData } from './data.js'
import { normalizeName } from './utils.js'

/**
* Search for emojis containing the provided name or pattern in their name.
*/
export const search = (keyword: RegExp | string) => {
assert.any([is.default.string, is.default.regExp], keyword)

Expand Down

0 comments on commit 8b29254

Please sign in to comment.