/home/techb158/balavpn.abdallabala.com/node_modules/which-collection
Edit: /home/techb158/balavpn.abdallabala.com/node_modules/which-collection/index.d.ts (670B)
/**
* Determines the type of the given collection, or returns false.
*
* @param {unknown} value The potential collection
* @returns {'Map' | 'Set' | 'WeakMap' | 'WeakSet' | false} 'Map' | 'Set' | 'WeakMap' | 'WeakSet' | false
*/
declare function whichCollection
(value: Map): 'Map';
declare function whichCollection(value: Set): 'Set';
declare function whichCollection(value: WeakMap): 'WeakMap';
declare function whichCollection(value: WeakSet): 'WeakSet';
declare function whichCollection(value: null | undefined | boolean | number | bigint | symbol | unknown): false;
export = whichCollection;