vituarvom / react-smart-utils

A simple, smart hooks and utility functions to make development easier
https://www.npmjs.com/package/react-smart-utils
13 stars 34 forks source link

Create uniqueId Utility Function #56

Open bharat-dussa opened 1 month ago

bharat-dussa commented 1 month ago

uniqueId

Generates a unique ID.

File: src/utils/function/uniqueId/uniqueId.ts Test File: src/utils/function/uniqueId/uniqueId.test.ts

Parameters:

Returns:

Example:

uniqueId('id_');  // 'id_1'
uniqueId('id_');  // 'id_2'
VamshiAdep commented 1 month ago

@bharat-dussa assign this task to. Mee