Advertisement
AEAEAEAEarray

urban

Sep 17th, 2021
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //here is my ellipsis function that i made
  2. var ellipsis = (string, max) => ((string.length > max) ? `${string.slice(0, max - 3)}...` : string);
  3.  
  4. //the urban not send cause some urban type is object..i treid that if condition but not work
  5. if (typeof(urban) === Object) return "error, somethinf went wrong";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement