JAVASCRIPT   60
is string
Guest on 1st May 2022 04:37:09 PM


  1. export default function isString(input) {
  2.     return typeof input === 'string' || input instanceof String;
  3. }

Raw Paste

Login or Register to edit or fork this paste. It's free.