source: node_modules/es-toolkit/dist/compat/predicate/isSymbol.d.ts

Last change on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago

Added visualizations

  • Property mode set to 100644
File size: 468 bytes
Line 
1/**
2 * Check whether a value is a symbol.
3 *
4 * This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to `symbol`.
5 *
6 * @param {unknown} value The value to check.
7 * @returns {value is symbol} Returns `true` if `value` is a symbol, else `false`.
8 * @example
9 * isSymbol(Symbol.iterator);
10 * // => true
11 *
12 * isSymbol('abc');
13 * // => false
14 */
15declare function isSymbol(value: any): value is symbol;
16
17export { isSymbol };
Note: See TracBrowser for help on using the repository browser.