Use a typed function to get the Unicode symbol by the title or the title itself if there is no such symbol.
const symbol = getSymbolByTitle('GEAR'); // ⚙
const noSuchSymbol = getSymbolByTitle('NO SYMBOL'); // NO SYMBOL
Supported Unicode version: 15
Use separate functions according to categories described in UnicodeData if you want only a subset of symbols and support a tree shaking.
const symbol = getSymbolFromSo('GEAR'); // ⚙
const noSuchSymbol = getSymbolFromSo('PLUS SIGN'); // PLUS SIGN
Use the getSymbolFromCategories
function if you want to try to extract a symbol from several categories.
const symbol = getSymbolFromCategories('GEAR', [Sm, So]); // ⚙
const noSuchSymbol = getSymbolFromCategories('GEAR', [Sm, Pi]); // GEAR
const emptyList = getSymbolFromCategories('GEAR', []); // GEAR