All files / src is-string.ts

80% Statements 4/5
50% Branches 1/2
100% Functions 1/1
75% Lines 3/4

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9        22x 4685x   4685x  
// TODO: Remove this, this is dangerous.
export const isString =
 
  // eslint-disable-next-line @typescript-eslint/ban-types
  (value: unknown): value is string | String =>
    typeof value === 'string' || value instanceof String
 
export default isString