(s: any)
| 16 | export const IDENTIFIER_REGEX = /^[a-zA-Z0-9_-]+$/; |
| 17 | |
| 18 | export function isIdentifier(s: any): s is string { |
| 19 | return typeof s === 'string' && IDENTIFIER_REGEX.test(s); |
| 20 | } |
| 21 | |
| 22 | export function isPromise(a: any): a is Promise<any> { |
| 23 | return a && typeof a === 'object' && typeof a.then === 'function'; |
no outgoing calls
no test coverage detected
searching dependent graphs…