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