Swap to using eslint (#435)
* WIP * ... and more * yet more... * and examples (more-or-less) fixed * Only problematic promisify left... * Last batch * rm config header * Update * Use Record * Bumps
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
* console.log('isString', isString('test')); // => true
|
||||
* ```
|
||||
*/
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any,@typescript-eslint/ban-types
|
||||
export default function isString (value: any): value is string | String {
|
||||
return typeof value === 'string' || value instanceof String;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user